Display control/field when button clicked
Hi everyone
In one of my forms I have a vertical group and I want to only display this if a user clicks a button on the form. However, I can't seem to find a way of doing this as there is no action on the button to show/hide a control, and I also can't see any reference to buttons in the expression builder on the Visible attribute.
Can someone let me know how I can achieve this please?
Thanks for your help.
-
Hello Gareth
Firstly, you have to select the vertical group and set the Visible in the Behaviour Tab to false.
Then you have to add the id to the vertical group. For this in Format Text Tab select Edit Text and in the source code of the form find the vertical group and add id="sb-hidden-field" for example.
And finally add Button with Action "Execute Script" with the following JavaScript: ArdeviaJQuery('#sb-hidden-group').show();
Best Regards
Markiyan Fostyak
0
Please sign in to leave a comment.
Comments
1 comment