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

    (@codepeople)

    Hello @luisef

    Yes, that’s possible, but the code to use depends on the fields with the texts you want to show/hide.

    For example, assuming you “Instruct. Text” fields in the form with the texts. To hide these fields by default, you can enter the class name: hide into their “Add CSS Layout Keywords” attributes. Furthermore, you should assign them a second class name to identify these fields, for example: my-help-text

    Note: you can assign multiple class names to the same fields, separating them by blank characters. So, you should enter the text: my-help-text hide into the “Instruct. Text” fields with the information to show/hide

    Finally, insert a button field in the form with the following piece of code as its onclick event:

    jQuery('.my-help-text').toggleClass('hide');

    and that’s all.
    Best regards.

    Thread Starter luisef

    (@luisef)

    Thank you very much it works just fine.
    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘button to show/hide text’ is closed to new replies.