How to run a script in a UI Action Condition Field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2017 07:02 AM
Hi,
Is it possible to run a script in the Condition Field in a UI Action?
I need to show a Form Button depending on the status of a record from another table. And that'd be easy to implement if I could write a script in the condition field.
Is there any way to run a script in the Condition field?
Thanks in advance for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2017 07:04 AM
Yes,
You can have a script include and have the function return true/false.
Use that in your condition field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2017 07:04 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2017 07:05 AM
Hi Catarina,
You should be able to run one line of JS that evaluates to true or false. In the case where you have something complex you can do that in a script include and then call the script include from the condition on the ui action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2017 07:18 AM
Hi Team,
Please find the below link it may help you
UI Action Condition and Script Include Produces Undefined
Please provide your feedback appropriately (Like, Helpful, Endorse AND/OR Correct) to help community.
Thanks
Cahndu Telu