WordPress.org

Ready to get started?Download WordPress

Ideas

Custom Forms API

  1. bceglowski
    Member

    It would be excellent to see a native WordPress custom form API that supports input sanitising, security measures and display of data in the back-end... a bit like a mashup of some of the higher-level functionality of Solspace Freeform for ExpressionEngine, and CodeIgniter's suite of form controls and helpers.

    Syntactically it could appear something like this in a template:

    <?php
    	open_the_form(
    		'my_form',				// Form name
    		'http://formaction.do',	// Form action/return page if not AJAX
    		'recipient@email.com',	// Email recipient(s)
    		array(				// Required Fields - we could go a level deeper and set arrays of validation rules for each field, or call fields using PHP rather than HTML with validation rules specified inline
    			'name',
    			'email',
    			'telephone'
    		)
    	);
    ?>
    	...inputs here...
    </form>

    ...with a fairly simple admin panel that allows filtration of entries saved to the database by form name ("my_form" above) and some other parameters.

    Posted: 2 years ago #
  2. blackriver
    Member

    12345

    Does anybody know if any of the current WordPress form builder plugins have any API capabilities?

    Posted: 1 year ago #
  3. bceglowski
    Member

    I've not seen anything like that, thus far. The best I can do right now is to cripple Contact Form 7's JavaScript capabilities and build an HTML form using the plugin. IMO a good-old-forms-API is quite long overdue. I would write a plugin myself but haven't the time to commit to any new projects unfortunately.

    Posted: 1 year ago #
  4. There are a couple of plugins that can do something similar, this the one I am developing:

    http://wordpress.org/plugins/momtaz-nmwdhj/

    Posted: 8 months ago #
  5. bceglowski
    Member

    Thanks Nashwan pal; had a look and it's promising. Keep up the good work!

    Posted: 7 months ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    15 Votes
  • Status

    This idea is under consideration