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

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>;
ParamExplanation
<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:

  • 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 eventWhen hiding/unhiding a field in a formWhen hiding/unhiding a subform field
In Form ActionsIn Subform Actions
On LoadYesYesNot Applicable
On ValidateNoNoNot Applicable
On SuccessNoNoNot Applicable
On User inputYesYesNot Applicable
On user input of a subform fieldYesNot ApplicableYes
Subform on add rowYesNot ApplicableYes
Subform on delete rowYesNot ApplicableYes

When a record is Created or Edited

Workflow eventWhen hiding/unhiding a field in a formWhen hiding/unhiding a subform field
In Form ActionsIn Subform Actions
On LoadYesYesNot Applicable
On ValidateNoNoNot Applicable
On SuccessNoNoNot Applicable
On User inputYesYesNot Applicable
On user input of a subform fieldYesNot ApplicableYes
Subform on add rowYesNot ApplicableYes
Subform on delete rowYesNot ApplicableYes

When a record is Edited

Workflow eventWhen hiding/unhiding a field in a formWhen hiding/unhiding a subform field
In Form ActionsIn Subform Actions
On LoadYesYesNot Applicable
On ValidateNoNoNot Applicable
On SuccessNoNoNot Applicable
On User inputYesYesNot Applicable
On user input of a subform fieldYesNot ApplicableYes
On UpdateNoNot ApplicableNot Applicable
Subform on add rowYesNot ApplicableYes
Subform on delete rowYesNot ApplicableYes

When a record is Deleted

Workflow eventWhen hiding/unhiding a field in a formWhen hiding/unhiding a subform field
In Form ActionsIn Subform Actions
On ValidateNoNoNo
On SuccessNoNoNo

Other workflow events

Workflow eventWhen hiding/unhiding a field in a formWhen hiding/unhiding a subform field
In Form ActionsIn Subform Actions
On a scheduled dateNoNoNo
During approval processNoNoNo
During payment processNoNoNo
In a Custom FunctionNoNoNo
In an Action item in reportNoNoNo

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