• Resolved shwetab

    (@shwetab)


    Hi,
    For a toggled section how do we know if it is made on by the user. The other thing is I have an essential (*) to be filled field in my toggled section and I would like to know if the section is not on and the essential field is not filled does the form gives error.

    I am planning to have a form having ten section and each section is having a checkbox which is needed for the user to select but not sure if the section is not on it will give error or not.

    Thanks for your help.
    ST

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    For a toggled section how do we know if it is made on by the user

    the toggled sections used are submitted as a hidden field with array values of the section element id attributes.

    The other thing is I have an essential (*) to be filled field in my toggled section

    please see the tutorial on toggled sections to understand how they work.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    The toggled sections are submitted in the hidden field _cf7sg_toggles as a json formatted array. To get a PHP array you can do,

    
    $toggled_panels = json_decode( stripslashes($_POST['_cf7sg_toggles']));
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to know if toggled section is shown’ is closed to new replies.