- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Description
Toggles the enabled status of the specified app object(s).
Input Parameters
Name | Type | Required | Description |
---|---|---|---|
tokensOrNames | Text | Yes | Comma-seperated list of app object token(s) or name(s) |
enable | Boolean | Yes | Enabled (true = enabled, false = disabled) |
Returns
No return value.
Examples
// disable app objects [10] and [15]
app.enable("[10], [15]", false);
// enable app objects [10] and [15]
app.enable("[10], [15]", true);
Remarks
By default, all app objects are enabled. However, your scripts can alter this behavior based on user selections or other criteria to deliver a more streamlined user experience.
Token Syntax
This function uses the native app object token syntax, which refers to the ID of an object within your app that is enclosed in square brackets.
Example: [10]