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:
- To disable fields for a set of users, you can define field permissions.
Syntax
To disable a field
To disable a subform field
To enable a field
To enable a subform field
Param | Explanation |
---|---|
<field_link_name> & <subform_field_link_name> | Link name of the field which needs to be disabled or re-enabled. Points to keep in mind for this parameter:
|
This task can be used in the following events
Workflow event | For form fields | For subform fields |
On Load | Yes | No |
On Validate | No | No |
On Success | No | No |
On User input | Yes | No |
On user input of a subform field | No | Yes |
Subform on add row | Yes | Yes |
Subform on delete row | Yes | Yes |
Workflow event | For form fields | For subform fields |
On Load | Yes | No |
On Validate | No | Yes |
On Success | No | No |
On User input | Yes | No |
On user input of a subform field | No | Yes |
Subform on add row | Yes | Yes |
Subform on delete row | Yes | Yes |
Workflow event | For form fields | For subform fields |
On Load | Yes | No |
On Validate | No | No |
On Success | No | No |
On User input | Yes | No |
On user input of a subform field | No | Yes |
On Update | Yes | No |
Subform on add row | Yes | Yes |
Subform on delete row | Yes | Yes |
Workflow event | For form fields | For subform fields |
On Validate | No | No |
On Success | No | No |
Workflow event | For form fields | For subform fields |
On a scheduled date | No | No |
During approval process | No | No |
During payment process | No | No |
In a Custom Function | No | No |
In an Action item in report | No | No |
Example 1
- The following snippet disables the "Total Amount" field.
Example 2
- The following snippet disables the cost field in the subform of the order placement form.
Scenario 1: Enabling field in a job application form
Consider a job application form where there is a decision box field to distinguish the experienced and fresher candidates category. Based on the user input of the decision box field, the number field to record the years of experience will be enabled or disabled. If the candidate selects the category as experienced, the number field wiI ll be enabled to to get work experience.
if ( category == "experienced") { enable experience_in_years; } else { disable experience_in_years; }