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]);
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.