Hide | Show

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

To hide a field

hide <field_link_name>;

To unhide a field

show <field_link_name>;
ParamExplanation
<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
On LoadYes
On ValidateNo
On SuccessNo
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Created or Edited
On LoadYes
On ValidateNo
On SuccessNo
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Edited
On LoadYes
On ValidateNo
On SuccessNo
On User inputYes
On UpdateYes
Subform on add rowYes
Subform on delete rowYes
When a record is Deleted
On ValidateNo
On SuccessNo
Other workflow events
On a scheduled dateNo
During approval processNo
During payment processNo
In a Custom FunctionNo
In an Action item in reportNo

Example

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

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohodeluge.com