ToggleField
This function will make specified field visible or hidden on form based on value of second parameter.
Syntax
ToggleField("fieldName","visible");
Function arguments
- fieldName – (String) The name of the field to be shown or hidden.
- visible – (Boolean) true to show field, false to hide field.
Return value
This function returns Boolean.
This function always returns true.
Examples
Example 1:
'Quantity’ field will be shown if value of 'show’ field is set to true, otherwise it will be hidden.
ToggleField("Quantity",[show]);