On this page
What this issue is
Conditional logic (also called show/hide rules or smart fields) reveals extra fields based on an earlier answer. For example, choosing "Other" in a dropdown should show an "Please specify" box, or choosing "Company" should show a VAT number field.
Why it costs you leads or sales
If the hidden field is required, the browser or the form blocks the submit and the visitor sees no field to fill in. Some forms show a vague error, some do nothing. Most people leave rather than guess what is wrong.
If the field is optional, the form still sends, but you lose the detail you needed, such as the product, budget or booking type. Sales then follow up with half the context.
- Open formForm loads normally
- Pick trigger optionFor example "Other" or "Company"
- Extra field showsField stays hidden
- SubmitBlocked by a required hidden field
- Lead in CRMNever created
The visitor picks the trigger option, the field never shows, and the required check blocks the submit.
Example: of 100 visitors who pick the trigger option, the field shows for all of them in the fixed form but for none in the broken one.
How to check if your site has it
List every conditional rule
Open the form builder and note each field that is shown or hidden by another answer, and which answer triggers it.
Test each trigger option
Pick every option in turn, not just the first. Check the right field appears and the wrong ones stay hidden. Also switch back to confirm it hides again.
Test on mobile and other browsers
Use a real phone or your browser's device mode, plus Safari and Firefox. Some rules fail only on certain browsers.
Open the browser console
Press F12, open Console, reload and pick the trigger. A red JavaScript error often explains why the logic did not run.
Inspect the hidden field
Right-click the spot where it should appear, choose Inspect and look for display: none, hidden, or a missing element. This tells you if the rule never fired or CSS is hiding it.
Submit a test lead
Complete the form using each trigger path and confirm the submission reaches your inbox and CRM.
The page script fails, so the show rule never runs.
How to fix it
The fix depends on your form tool. Start with the rule itself, then look for script conflicts. Steps below cover the usual builders.
Re-save the rule
In your form plugin (Gravity Forms, WPForms, Contact Form 7 add-ons, Fluent Forms and similar), open the field's conditional logic and check it points at the right field and the exact option value. Re-select both and save.
Rule out optimisation plugins
Exclude the form page from JavaScript minify, combine and delay settings in your caching plugin, clear the cache and retest.
Rule out conflicts
Temporarily switch to a default theme and disable other plugins one at a time. If the field appears, re-enable until it breaks again.
Check the form app's rules
If you use a form or product-options app, reopen the rule and re-select the trigger and target. Theme custom forms need custom JavaScript.
Check theme code
If you added custom show/hide code, make sure it targets the current element ID or class after any theme update.
Test in the live theme
Preview and publish only after each trigger option works on mobile.
Check for GTM-injected scripts
If a Custom HTML tag controls show/hide, open Preview mode and confirm it fires on the form page and after the form has rendered.
Fix timing
Use a trigger such as Window Loaded or a DOM Ready trigger rather than Page View if the form renders late.
Check interactions or custom code
Webflow forms have no built-in conditional logic. If you use an interaction or custom script, check it targets the correct element and that the element is not set to Display: None in a way the interaction can't override.
Publish and retest
Test on the published site, not only in the Designer preview.
Review the form's conditional logic
Open the form in the builder, select the dependent field and check its conditional logic points at the current trigger field and option. Rebuilding the rule often fixes a stale reference.
Test the embedded version
Test the form where it is embedded, as the page's own scripts can conflict with the embed.
Check the form's settings
In Wix Forms, open the field settings and review any show/hide option. If you used Velo code, check the element IDs still match.
Preview and publish
Test each option on the published page, on mobile too.
Check the form block options
Squarespace form blocks have no native conditional fields. If you added code injection, confirm it targets the right field and runs after the form loads.
Consider separate forms
If the script is fragile, use a different form tool with built-in logic and embed it.
Run the logic after load
Wait for the DOM, then attach the change listener and set the initial state. See the code example below.
Don't leave hidden fields required
Remove required from a field while it is hidden, and add it back when shown.
document.addEventListener('DOMContentLoaded', function () {
var select = document.querySelector('#contact-reason');
var wrap = document.querySelector('#reason-other-wrap');
var input = document.querySelector('#reason-other');
if (!select || !wrap || !input) return;
function update() {
var show = select.value === 'other';
wrap.hidden = !show;
input.required = show;
if (!show) input.value = '';
}
select.addEventListener('change', update);
update();
});How to confirm it's fixed
- Every trigger option shows the right field
- Changing the answer hides the field again
- The form submits with the field shown and with it hidden
- No red errors in the browser console
- Works on mobile and in Safari, Chrome and Firefox
- The test lead arrives in your inbox and CRM with the extra answer included
Before
- Pick "Other" and nothing appears
- Required field hidden, submit blocked
- Visitor leaves with no error they understand
After
- Pick "Other" and the field appears at once
- Required only while visible
- Lead and the extra detail reach the CRM
How to prevent it happening again
- Retest every conditional path after theme, plugin or form-tool updates
- Keep field and option names stable, or update rules when you rename them
- Exclude form pages from script minify and delay settings
- Keep conditional logic simple; fewer rules mean fewer breakages
- Review the form on mobile whenever you change page scripts
How FunnelGuard handles this
FunnelGuard detects this issue only partly. A robot visitor runs your real form journey on a schedule. If the journey needs the conditional field to complete, and the field never appears, the journey fails. FunnelGuard then re-checks from a second region and sends one alert with a screenshot and a likely cause.
Frequently asked questions
Questions people ask
Why is my conditional field not showing up in my form?
The usual causes are a rule pointing at a renamed field or option, a JavaScript error on the page, a script that runs before the form loads, or CSS keeping the field hidden. Open the browser console and inspect the field to see which applies.
Why can't I submit my form when a field is hidden?
A hidden field that is still marked required fails validation, so the form blocks the submit. Make the field required only while it is visible, or remove the requirement.
How do I test conditional logic on a form?
Pick every trigger option in turn, check the right field shows and hides again, then submit a test lead on each path. Repeat on mobile and in more than one browser.
Can a caching or optimisation plugin break conditional fields?
Yes. Minifying, combining or delaying JavaScript can stop form scripts from running in the right order. Exclude the form page from those settings, clear the cache and retest.
Does Webflow or Squarespace support conditional form fields?
Neither has built-in conditional logic in its standard form. You need custom code, interactions or a separate form tool with logic and then embed it.
Can FunnelGuard detect a conditional field that never appears?
Partly. It fails the journey if the field is needed to finish the form, but it does not test every trigger option. Test the other branches by hand or set up a journey for each important path.
How often should I retest conditional forms?
Retest after any change to the theme, plugins, form tool or page scripts, and spot-check regularly. Scheduled journey checks help catch breakages between manual tests.
Related issues
- PRF-212Required fields not markedFix guide
- PRF-214Error messages unclear or genericFix guide
- PRF-216Form loses entered data on validation errorFix guide
- PRF-219Submit button disabled with no explanationFix guide
- PRF-211Form has too many fields (10+ on a lead form)Fix guide
- PRF-215Errors only shown after submit, all fields clearedFix guide