JSTags: Form-rules Tag


This tag configures a form so that, depending on the values of some form fields, the form fields displayed may vary. It is used in combination with the tag form-rule.

Tag reference

Attribute name Description Default Required Valid values
formName Name of the form the rules will be applied to. true i.e. subscriptionForm
displayAlways JavaScript-like array with the identifiers of the form elements that will be displayed always. true i.e. ['inputId1', 'textId2', 'checkboxId3']. You can have a look at the installation section to know about third party libraries that can help you creating this arrays.

Note: all of the attributes accept runtime expressions.


Go here to see an example.