Conditional Logic Rules Not Firing on Prefilled Fields

  • Cassie_ccampbell
    Asked on March 19, 2025 at 1:17 PM

    I am working on a form that is being prefilled with data from another form. I have set conditional logic to show and require different fields based upon this prefilled data, however the logic is not being triggered until the field is edited. How can I force this to trigger without user interaction so that questions are not missed?

  • Mark Alan JotForm Support
    Replied on March 19, 2025 at 1:52 PM

    Hi Cassie,

    Thanks for reaching out to Jotform Support. I understand that you're experiencing an issue where conditional logic rules are not firing on prefilled fields until they are edited. This can indeed be frustrating, especially when you want to ensure that all questions are answered based on the prefilled data.

    To address this issue, it’s important to note that conditional logic in Jotform typically relies on user interaction with the fields. Unfortunately, conditional logic does not automatically trigger based on prefilled data unless the user interacts with the field. However, there are a few strategies you can consider to ensure that the necessary questions are displayed without requiring user interaction:

    1. Use the Update/Calculate Field Condition: This feature allows you to dynamically change a field’s value based on specific conditions. You can set a condition that checks if a certain field is filled and then show or require other fields based on that.

    2. Set Default Values: You can set default values for fields based on the prefilled data. This way, when the form loads, the fields will already have values, which may help in triggering the conditional logic.

    3. Manual Triggering: If feasible, you could include a hidden field that the user doesn’t see but can trigger the conditional logic when the form is submitted. This can be a workaround to ensure that conditions are met without direct user interaction.

    4. Testing: After implementing any changes, make sure to thoroughly test the form to ensure that the conditional logic behaves as expected with prefilled data.

    You can also refer to our guide on Conditional Logic for Online Forms for more detailed instructions.

    Let us know if you have any other questions.