Ready to get started?Download WordPress


Custom Forms API

  1. bceglowski

    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:

    		'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
    	...inputs here...

    ...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


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

    Posted: 1 year ago #
  3. bceglowski

    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:


    Posted: 8 months ago #
  5. bceglowski

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

    Posted: 7 months ago #

RSS feed for this topic


You must log in to post.

  • Rating

    15 Votes
  • Status

    This idea is under consideration