• Resolved antoineboucher

    (@antoineboucher)


    Hello,

    I have a number of conditionals that depends on a value of a first field. When the form is displayed for the first time it does not seem to be initialized and displays all fields instead of the specific ones based on the default value I selected from this first field. I have not been able to fix this yet. Any suggestions? All is well after I make a selection.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @antoineboucher

    The issue is not caused by our plugin, it is related to the pop-up. You can test the form directly through its URL, and you will see the dependencies are evaluated properly:

    https://new.haltondc.com/?cff-form=6

    Please, try inserting an “HTML Content” field in the form with the following piece of code as its content:

    
    
    <script>
    fbuilderjQuery(document).one('showHideDepEvent', function(){fbuilderjQuery('[id*="fieldname3_"]').change();});
    </script>
    

    Another alternative would be triggering an onchange event in the fieldname3 field after opening the popup:

    
    
    fbuilderjQuery('[id*="fieldname3_"]').change();
    

    Best regards.

    • This reply was modified 3 years, 11 months ago by codepeople.
Viewing 1 replies (of 1 total)
  • The topic ‘First form open and conditionals’ is closed to new replies.