Hide | Show
Table of Contents
Note: This task is applicable only to Zoho Creator.
Overview
The hide deluge task hides a specified field on a form.
The show deluge task reverses the hide action and unhides the hidden field in the form.
Note:
- To hide or show a field in a report, navigate to column properties in a Report, select the required field and click on the delete icon.
- To hide fields for a set of users, you can define field permissions.
Syntax
HIDE
- To hide a Mainform field.
hide <field_link_name>;
- To hide a Subform field
hide <subform_link_name>.<subform_field_link_name>;
- To hide the Subform field in a specific subform row. This syntax can only be used in subform actions such as addition of row, deletion of row and user input of a subform field.
hide row.<subform_field_link_name>;
UNHIDE
- To unhide a Mainform field.
show <field_link_name>;
- To unhide a Subform field
show <subform_link_name>.<subform_field_link_name>;
- To unhide the Subform field in a specific subform row. This syntax can only be used in subform actions such as addition of row, deletion of row and user input of a subform field.
show row.<subform_field_link_name>;
Param | Explanation |
---|---|
<field_link_name>, <subform_link_name> & <subform_field_link_name> | Link name of the field which needs to be hidden or unhidden. Points to keep in mind for this parameter:
|
This task can be used in the following events
When a record is Created | |||
Workflow event | When hiding/unhiding a field in a form | When hiding/unhiding a subform field | |
In Form Actions | In Subform Actions | ||
On Load | Yes | Yes | Not Applicable |
On Validate | No | No | Not Applicable |
On Success | No | No | Not Applicable |
On User input | Yes | Yes | Not Applicable |
On user input of a subform field | Yes | Not Applicable | Yes |
Subform on add row | Yes | Not Applicable | Yes |
Subform on delete row | Yes | Not Applicable | Yes |
When a record is Created or Edited | |||
Workflow event | When hiding/unhiding a field in a form | When hiding/unhiding a subform field | |
In Form Actions | In Subform Actions | ||
On Load | Yes | Yes | Not Applicable |
On Validate | No | No | Not Applicable |
On Success | No | No | Not Applicable |
On User input | Yes | Yes | Not Applicable |
On user input of a subform field | Yes | Not Applicable | Yes |
Subform on add row | Yes | Not Applicable | Yes |
Subform on delete row | Yes | Not Applicable | Yes |
When a record is Edited | |||
Workflow event | When hiding/unhiding a field in a form | When hiding/unhiding a subform field | |
In Form Actions | In Subform Actions | ||
On Load | Yes | Yes | Not Applicable |
On Validate | No | No | Not Applicable |
On Success | No | No | Not Applicable |
On User input | Yes | Yes | Not Applicable |
On user input of a subform field | Yes | Not Applicable | Yes |
On Update | No | Not Applicable | Not Applicable |
Subform on add row | Yes | Not Applicable | Yes |
Subform on delete row | Yes | Not Applicable | Yes |
When a record is Deleted | |||
Workflow event | When hiding/unhiding a field in a form | When hiding/unhiding a subform field | |
In Form Actions | In Subform Actions | ||
On Validate | No | No | No |
On Success | No | No | No |
Other workflow events | |||
Workflow event | When hiding/unhiding a field in a form | When hiding/unhiding a subform field | |
In Form Actions | In Subform Actions | ||
On a scheduled date | No | No | No |
During approval process | No | No | No |
During payment process | No | No | No |
In a Custom Function | No | No | No |
In an Action item in report | No | No | No |
Example 1
- The following snippet hides the "Phone Number" field if the selected contact mode is "Email".
if(Contact_Mode=="Email") { hide Phone_Number; } else { show Phone_Number; }
Example 2
- The following example hides the product code field in the subform, if the user selects the product is not imported from a third party manufacturing unit.
if(Manufactured_by != "third-party") { hide row.product_code; } else { hide row.product_code; }
Scenario 1: Show/Hide a field in a review form
Consider a review form in an application, where there is a dropdown field with choices, good, average, satisfactory and other. If the user chooses the other from the dropdown, a multi-line field will be shown for the user to enter his review based on the user input of the dropdown field.
if(feedback == "other") { show comments; } else { hide comments; }