How to Create a Dynamic Form in WordPress Without Coding

How to Create a Dynamic Form in WordPress Without Coding
Want to create a dynamic form in WordPress that changes according to a visitor’s answers? A dynamic form uses conditional logic to show, hide or require particular fields when someone selects an option. This makes a form easier to complete because visitors see only the questions relevant to them.
For example, imagine a support form with a dropdown menu. When a visitor selects “Billing”, the form can ask for an invoice number. When they select “Technical Support”, it can display the product name and error details. You can build this kind of conditional form in WordPress with a form plugin that supports conditional logic—without writing PHP or JavaScript.
Important update: The original version of this article demonstrated Caldera Forms. That recommendation is outdated, so do not install Caldera Forms based on the old instructions. Choose a currently maintained WordPress form plugin that explicitly supports conditional field logic, and check its latest documentation, compatibility and pricing before installing.
What Is a Dynamic Form or Conditional Logic Form?
A dynamic form is a form whose fields or behaviour change in response to a user’s selections. Conditional logic is the set of rules that controls those changes. Depending on the form builder, a rule can show, hide, enable, disable or make a field required when a condition is met.
A simple example is a country, state and city form. The visitor first chooses a country. The next field can then display the relevant states or provinces. After a state is selected, the city field can show the appropriate choices. The exact cascading-dropdown capability depends on the plugin and may require a lookup, integration or add-on; ordinary show/hide rules alone do not automatically populate geographic data.
Where Can You Use Conditional Forms in WordPress?
- Contact forms that display different questions for different enquiry types.
- Customer support forms that ask for an order number only when the visitor selects an order-related issue.
- Job application forms that show role-specific questions based on the position selected.
- Registration forms that request additional details only for particular account types.
- Product enquiry and quotation forms that reveal options based on the product or service selected.
- Surveys and feedback forms that ask relevant follow-up questions based on previous answers.
- Booking and service request forms that collect different details for different appointment types.
Step 1: Choose a WordPress Form Plugin With Conditional Logic
Log in to your WordPress dashboard and open Plugins → Add New Plugin. Search for a form builder and review its plugin page before installing it. Do not choose a plugin only because it is popular or has a free version: confirm that the exact conditional logic feature you need is included in your chosen plan.
Several established form builders offer conditional features in at least some versions or plans. Examples include WPForms, Formidable Forms, Gravity Forms and Fluent Forms. Features and licensing change, so check each product’s current documentation and pricing. If you want to keep costs low, first confirm whether a free plugin supports your particular conditional rules; advanced logic, integrations and multi-step forms may require a paid plan.
- Check the plugin’s latest update date and compatibility with your WordPress and PHP versions.
- Read recent support topics and changelog entries.
- Confirm whether conditional logic is included in the free version or requires a paid licence.
- Check whether notifications, spam protection, file uploads and integrations are included if you need them.
- Install plugins only from the official WordPress directory or the developer’s genuine website.
Step 2: Create a New Form
After installing and activating your selected plugin, open its form builder from the WordPress dashboard and choose the option to create a new form. You can start with a blank form or use a template such as Contact Form, Support Request or Registration Form. Template names vary by plugin.
- Give the form a clear name so you can identify it later.
- Add the basic fields you need, such as Name, Email Address and Enquiry Type.
- Add a dropdown, radio buttons or another field that will control the conditional rules.
- Add the follow-up fields that should appear for each answer.
- Save the form before configuring or testing the conditions.
Step 3: Add the Required Form Fields
Most form builders provide a field panel with common input types. The available fields and labels vary, but you will usually find options similar to these:
- Basic fields: Single-line text, paragraph text, name, email, phone number and hidden fields.
- Selection fields: Dropdown, radio buttons, checkboxes and multi-select fields.
- Date and number fields: Date picker, number, range or quantity fields.
- File fields: File upload fields, if supported by the plugin and hosting configuration.
- Content fields: HTML, section headings, descriptions and explanatory text.
For this example, add a dropdown called Enquiry Type with three choices: Billing, Technical Support and General Enquiry. Then add three groups of follow-up fields: Invoice Number for Billing, Product and Error Description for Technical Support, and Message for General Enquiry. Give every field a clear label and add helper text where a visitor might need guidance.
Step 4: Configure Conditional Logic
Open the field settings or form settings in your plugin and locate the Conditional Logic, Conditional Rules or Field Visibility option. The menu location and terminology differ between form builders, but the process is generally similar.
- Select the field or group of fields whose visibility you want to control.
- Choose whether the fields should be shown or hidden when a rule matches.
- Select the controlling field—in this example, Enquiry Type.
- Choose the comparison, such as “is equal to”.
- Enter or select the answer that should trigger the rule.
- Save the rule and repeat for the other enquiry types.
Example conditional rules
- Rule 1: Show the Invoice Number field when Enquiry Type is equal to Billing.
- Rule 2: Show the Product and Error Description fields when Enquiry Type is equal to Technical Support.
- Rule 3: Show the Message field when Enquiry Type is equal to General Enquiry.
Some form builders allow multiple conditions in one rule. For example, you might show a field only when Enquiry Type is Billing and the visitor selects “Existing Customer”. Check whether your plugin uses AND logic, OR logic or separate rule groups, and test the result rather than assuming how combined conditions behave.
Step 5: Set Required Fields and Form Notifications
A field that is hidden should not block form submission because it is marked as required. Many form builders handle this automatically, but you should verify the behaviour in your chosen plugin. Make only the fields that are necessary for the selected enquiry type mandatory.
Next, configure the form’s confirmation message and email notification. Send submissions to an address that is monitored, use a meaningful subject line and include only the information your team needs. If notification emails do not arrive, configure authenticated SMTP using a reputable provider and test delivery. Do not put email passwords or API keys in public page content.
Step 6: Add the Form to a WordPress Page or Post
When the form is ready, save it and use the embed method recommended by the plugin. Depending on the form builder, you may be able to insert a dedicated Gutenberg block, select the form from a block inserter, or copy a shortcode.
- Open the page or post where you want the form to appear.
- Click the block inserter (+) and search for your form plugin’s block, if available.
- Select the form you created. If the plugin uses a shortcode, paste the shortcode into a Shortcode block.
- Add a short heading and explain what information visitors should prepare.
- Preview the page and publish or update it when you are satisfied.
Step 7: Test Every Conditional Path
Do not assume that a form is working just because it looks correct in the editor. Open the page as a normal visitor and test every possible answer, including switching between choices after entering information.
- Choose Billing and confirm that Invoice Number appears.
- Choose Technical Support and confirm that Product and Error Description appear.
- Choose General Enquiry and confirm that the correct message field appears.
- Switch between options and check that fields from the previous choice are handled correctly.
- Try submitting with required fields empty and confirm that validation is clear.
- Submit a valid test entry and confirm that it is stored or delivered as expected.
- Test on a mobile phone, tablet and desktop browser.
- Check keyboard navigation, field labels, error messages and spam protection.
Archived Caldera Forms Screenshots From the Original Tutorial
The screenshots below are retained from the original article for historical reference. They show the older Caldera Forms interface and are not current setup instructions. Caldera Forms is no longer a plugin recommendation for a new WordPress installation. Your current form builder will have a different dashboard and may use different names for fields, conditions and templates.







Common Problems When Creating a Dynamic WordPress Form
Conditional fields are not appearing
Check that the controlling field, comparison operator and answer value match exactly. If the rule compares a dropdown value, confirm whether the plugin uses the visible label or a separate stored value. Save the form and clear any page cache before testing again.
The form cannot be submitted
Check required fields, validation messages and conditional rules. A hidden field that remains required can prevent submission. Temporarily test without caching or optimization plugins if the form’s scripts are not behaving correctly, then re-enable features one at a time to identify conflicts.
Email notifications are not received
Check the notification recipient, spam folder and form submission log. WordPress sites often need authenticated SMTP or a transactional email service for reliable delivery. Send a test email and review the provider’s delivery logs.
The form looks different on mobile
Preview the form on a small screen. Use concise labels, avoid unnecessarily wide fields and check that dropdowns, buttons and error messages fit the available width. If the plugin provides responsive layout settings, review them in its documentation.
Security, Privacy and Accessibility Tips
- Collect only the personal information needed to respond to the enquiry.
- Add a short privacy notice and link to your site’s Privacy Policy.
- Keep WordPress core, themes and form plugins updated.
- Use HTTPS and restrict access to stored form entries.
- Enable suitable spam protection and rate limiting for public forms.
- Do not ask visitors to submit passwords, full payment-card details or other highly sensitive information through a general-purpose contact form.
- Use visible labels, clear error messages and keyboard-accessible controls.
Frequently Asked Questions
Can I create a conditional form in WordPress without coding?
Yes. Many WordPress form builders provide visual form editors and conditional logic settings. You can create rules to show or hide fields without writing code, although advanced integrations or custom behaviour may require additional configuration.
Is Caldera Forms still a good choice for a new website?
No. This article’s original Caldera Forms recommendation is outdated. For a new site, choose a currently maintained form plugin and verify that it supports your required conditional logic and WordPress version.
Are conditional logic features free?
It depends on the plugin and the feature. Some form builders include basic conditional logic in a free version, while others reserve it for paid plans. Check the current feature comparison and pricing before you build your form around a particular capability.
Can I show different fields based on a dropdown selection?
Yes. This is one of the most common uses of conditional logic. Create a rule for each dropdown answer and set the relevant fields to appear when that answer is selected.
Can I create dependent country, state and city dropdowns?
This may require more than basic show/hide rules. Look for a form plugin or add-on that supports dependent fields, dynamic choices or a suitable data integration. Test the feature with your required countries and regions before using it on a live form.
Conclusion
A dynamic form can make your WordPress website easier to use by displaying only the questions that matter to each visitor. Start by choosing a maintained form plugin with the conditional logic features you need, add your fields, create clear rules and test every possible path before publishing. The old Caldera Forms screenshots in this article are kept only as historical references; follow your selected plugin’s current documentation for the exact interface.
Related WordPress Tutorials
- WordPress plugins: review your current plugin choices
- How to make a duplicate WordPress site
- How to send email in ASP.NET using SMTP





