Choose where you’d like to start

Hide | Show

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

To hide a field

hide <field_link_name>;
 

To hide a subform field

hide row.<subform_field_link_name>;
 

To unhide a field

show <field_link_name>;
 

To unhide a subform field

show row.<subform_field_link_name>;
ParamExplanation
<field_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:

  • Since the Autonumber field type is not displayed in a Form, it cannot be specified in this task.
  • For composite field types like Name and Address, the action of hiding/showing the main field will be applied to all its subfields by default. To hide/show a particular subfield you must specify it along with the main field, for example: hide Name.last_name;
  • The action of hiding/showing the Section field type will be applied to all the fields enclosed in the section.

This task can be used in the following events

When a record is Created
Workflow eventFor form fieldsFor subform fields
On LoadYesNo
On ValidateNoNo
On SuccessNoNo
On User inputYesNo
On user input of a subform fieldNoYes
Subform on add rowYesYes
Subform on delete rowYesYes
When a record is Created or Edited
Workflow eventFor form fieldsFor subform fields
On LoadYesNo
On ValidateNoYes
On SuccessNoNo
On User inputYesNo
On user input of a subform fieldNoYes
Subform on add rowYesYes
Subform on delete rowYesYes
When a record is Edited
Workflow eventFor form fieldsFor subform fields
On LoadYesNo
On ValidateNoNo
On SuccessNoNo
On User inputYesNo
On user input of a subform fieldNoYes
On UpdateYesNo
Subform on add rowYesYes
Subform on delete rowYesYes
When a record is Deleted
Workflow eventFor form fieldsFor subform fields
On ValidateNoNo
On SuccessNoNo
Other workflow events
Workflow eventFor form fieldsFor subform fields
On a scheduled dateNoNo
During approval processNoNo
During payment processNoNo
In a Custom FunctionNoNo
In an Action item in reportNoNo

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;  
} 

Get Started Now

Execute