Adam Benoit
23 posts
Registered:
01 Mar 2017
Answered
26 Feb 2018
in reply to
Missing user
Link to this post
Hi Matt,
Thank you for bringing the lack of documentation to our attention. We will update the documentation in the near future with this missing information.
The Show/Hide/Toggle functionality of the rules manager works by setting an Id or a Class of an element on the page. This allows you to show/hide groups of fields. If the hidden fields are required, the form cannot be submitted. Be sure to remove the required flag from any fields you hide.
The easiest way is to use the container layout widget in the form designer and setting a class on it. Then put inside it any fields that you want to show/hide conditionally. Then create a rule and set the class name you set in the container layout widget.
The value you set in the rules manager of Rules Manager is the CSS/jQuery selector. a '.' in the case of classes and a '#' in the case of Ids. So to hide a layout widget you set a class of "myContainer" you would configure the trigger of the rule and set the action to be Show/Hide and the action value would be '.myContainer'.
I hope this answers your question. Please let us know if you have any additional questions.
Adam Benoit