You could create a hierarchical custom post type and create a post for each form. Child forms are then set under a parent, their slug or a post meta field connected to the answers of their parent form.
When the form is submitted, you use the answer to select the best matching child and the you show that child form.
Another approach.
- Create a special endpoint, let’s say
submitwith the sub-typestep.
On the main page, show the form. When the submission is a POST request, validate the submitted data and either show the same for again to correct user errors or …
-
Create a new post for that company with
wp_insert_post(). This function returns a post ID. Redirect the user to the next step (/submit/step/2) and show the next form. Add the post ID as hidden field, and set a cookie for the user, so you can track the progress. -
Again, when that form is processed lead to step 3 or a success message.
Related Posts:
- Simple form that saves to database
- Let readers suggest edits from the frontend
- Get selected values from checkboxes and radio buttons via Gravity Forms gform_after_submission hook [closed]
- Where should my plugin POST to?
- Plugin development: how to create a form and get custom data?
- Multi step form, custom plugin
- Contact Form 7 plugin refreshing page on submit [closed]
- Plugin form unable to process
- Trying to add admin file upload form plugin
- How to disable autocomplete for inputs in contact form 7? [closed]
- WordPress Custom Application form
- When is it useful to use wp_verify_nonce
- Datepicker not supporting timepicker
- add function to saving change on Options Pages
- Admin page: form with enctype=”multipart/form-data” does not transfer its data
- Hook into and send mail using WP Mail SMTP type plugin from HTML static front page?
- Form isn’t inserting data into database with ajax plugin
- New User Form – Custom Menu Page
- Anonymous Postings
- Can I use custom CSS and js plugin to put JavaScript in to validate my forms
- auto populate list of questions if user select a category xyz
- Contributive page where people logged in can write
- Contact Form 7 Get Image Function [closed]
- Adapt PHP form action for WordPress?
- Is there any way to use google input tool or any other language keyboard with WordPress [closed]
- Take input from form and pass it to function using a wp-plugin
- Checkbox conflict in my custom plugin admin page
- How do I make a child theme I made POST through a 3rd party plugin?
- WP Plugins – Use includes to display page content
- Submit custom form from post content and execute in plugin
- How to allow user to select User ID in Formidable Pro form? [closed]
- Char limit on custom blog-post form? [closed]
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- Is there a way to embed a Google Docs form in a page without using plugins?
- Detailed form plugin, with ability to export to excel etc. OR edit PDF live? [closed]
- easy steps to make front end form without plugin
- Form that generates an ID for the customer
- Submit Form data to another page via Ajax (WordPress Way)
- Editing a text file from plugin menu
- Ajax Plugin Not Echoing Response
- Creating a form and displaying entry data as a table
- How can ι create my own (custom) WordPress table/list?
- Sell access to form [closed]
- File Uploader – Upload without adding to Media Library
- Custom form not showing in correct place on page
- How to redirect to a page after the form is submitted
- Call another page in forms
- How to Use the Filter “sidebar_login_widget_form_args”
- Select Form Element Not Saving from Plugin Options
- Is it save to replace with in WordPress search form
- Contact Form 7 Plugin emails not being received by some accounts
- Using AJAX to run SQL statement and populate dropdown
- Plugin for visitors to edit content without logging in? [closed]
- WordPress Forms Advance Conditional Logic
- User loggedin as Subscriber form not sending
- How to create a form where you can select multiple recipients, based on a list of website users?
- login form should redirect to register page for in 1st login next time it should redirected to home page
- How to get data from a form on a wordpress site?
- General Term for this form Field
- wp_set_password() does not work!
- Custom Formdata matching with user table
- Why is my form going to frontend on html form submission present on the php files inside my custom plugin?
- Creating posts with acf_form() that has a relationship type field
- How to send custom mail when a user complete a specific form
- How to submit custom form data using ajax to HubSpot form?
- Ajax call to php function doesn’t work PHP code
- After form submission want to show success message in the form page
- Pause form submissions while upgrading plugins
- How to hide the form after successful php execution
- How can I automatically send an email with an excel file containing submissions for a form rather than an email per submission?
- Why doesn’t a form need an ‘action’ with a plugin that uses the post data?
- $POST variable is empty in receiving php add-on function but can be seen by jscript function
- WP_Filesystem usage within a block of code
- I created a custom form in HTML/CSS and now I need it to submit … should I create custom PHP or is there a plugin I can use?
- Include plugin form in the home page
- How can i see/log all requests coming from a registration form (not from the UI)?
- Form submit from wordpress plugin
- How do I convince this button to do something when it is clicked?
- wordpress option page data from select form is not saving to database
- Linking Plugin Files to WP
- Carrying information from button click into form [closed]
- Custom Form only for admin
- County Finder form/plugin?
- How to prevent page load on form submission
- How to develop an extension for a simple form post and post back? [closed]
- Can’t edit Contact Us form on front page
- How to get an error message if a form is empty (plugin: Post for site) [closed]
- Is it possible to set different payment gateway on each Gravity Forms form? [closed]
- how to show selected options drop down menu values in attributes field in after saving post.php
- How to Allow Users to Select Recipients In a WordPress Comment section?
- Form with response button after on table after submission
- Tips on using a custom template with Ultimate Member
- How can I add a zip code service availability checker in WordPress without Woocommerce? [closed]
- Can’t save formdata in DB
- Display file contents within Plugin
- Gravityforms login form custom redirect if form not submitted
- Trying to Find the PHP File/Function that Handles a Specific Form Action URL
- Issue using form in Google app in mobile
- Is there a WordPress plugin or solution that allows to set up forms with a total control over markup
- How to verify/test that a custom built wordpress theme is as secure as possible?