Enable | Disable

Enable | Disable

Table of Contents

Note: This task is applicable only to Zoho Creator.

Overview

The Disable deluge task disables a specified field on the form. The disabled field will be grayed out, and the user will not be able to add data to that field.

The Enable deluge task reverses the Disable action and re-enables a disabled field for users to fill it out in the form.

Note:

Syntax

To disable a field

disable <field_link_name>;

To enable a field

enable <field_link_name>;
ParamExplanation
<field_link_name>

Link name of the field which needs to be disabled or re-enabled.

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 disabling/enabling the main field will be applied to all its subfields, by default.  To enable/disable a particular subfield you must specify it along with the main field, for example: disable Name.last_name;
  • The action of disabling/enabling 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
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 disables the "Total Amount" field.

disable Total_Amount;

Share this post : FacebookTwitter

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

Write to us: support@zohodeluge.com