• Resolved Marin Marinov

    (@mpmarinov)


    Hello,

    since I did not find anything suitable in the forum I want to ask the following:

    How can I hide the fieldset’s and after clicking on the button to show the fields. I also added CSS class.

    Thanks for the help of those who responded.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @mpmarinov

    Assign to this fieldset the predefined class name: hide

    Note: it is possible to assign multiple class names to the same field, separating the class names by blank characters.

    Finally, enter the following piece of code as the onclick event of the button:

    
    jQuery('.cff-container-field.hide').removeClass('hide');
    

    Best regards.

    Thread Starter Marin Marinov

    (@mpmarinov)

    And how can I hide the fields again after clicking again?

    Thank you.

    Plugin Author codepeople

    (@codepeople)

    Hello @mpmarinov

    In this case, I recommend a different solution:

    Assign to these fields the hide class name, as in the previous entry, and a custom class name to identify them, for example: my-show-hide-field

    And then, edit the onclick event of button as follows:

    
    jQuery('.my-show-hide-field').toggleClass('hide');
    

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide Unhide fieldsets’ is closed to new replies.