Developing a wizard form builder
-
Hi friends
I need just a little bit of help with developing a plugin.
I don’t know how to start it.
I want to develop a plugin that users could somewhat drag it into page or post content(of course this step occurs from admin panel), the form maybe would have some initial selected values when customers see it on the client-side.
On the customer side, when a user selects an item for example from a dropdown list in the form, I must handle dynamic data loading via Ajax so that the user could go to the next step on the wizard form and so on till submitting the form.What I tried until now is creating a wizard form using WordPress Widgets but at the Widgets just could be added into the footer or sidebar and not in the content of the page or anywhere user want.
I wonder if there is any solution so that I could extend for example WordPress Visual Editor so that users could drag the form into what content they want to publish and config the form.
I appreciate it if anyone gives me a clue on how to start.
I’m a PHP(Laravel) developer and I can technically handle what I want to do, but have no idea from where to start.
Thank you in advance.
-
Ninja Forms is an excellent forms plugin that lets you create multi part forms (like a wizard) Try it out:
@a2hostingrj Thank you for your response, For now, we are using GravityForm plugin and it works fine, but there is some situation that we must read data from another server and handle customer interaction dynamically via Ajax, so I need to develop a customized plugin.
Since you are using a form plugin, the best way to pre-populate fields would be via JavaScript or jQuery, though if the plugin offers a handy output filter for their forms a PHP solution would be even better. If you need to pass PHP values to your JavaScript code, you can use
wp_localize_script()right after you enqueue your JS code in PHP withwp_enqueue_script().but there is some situation that we must read data from another server and handle customer interaction dynamically via Ajax
I suggest you to read this thread in SO:
https://stackoverflow.com/questions/52893707/gravity-forms-post-get-to-get-data-from-mysql-database
The topic ‘Developing a wizard form builder’ is closed to new replies.