UI Action condition script on value of the value of a field on the form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 10:14 PM
Hi,
I am updating a UI action for the Form button to be visible to user matches the value of a form field. With the following condition somehow the form button does not show. Any idea why it is not working?
(current.contract_administrator==gs.getUserID()) && (current.state == 'active' || current.state == 'expired')

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 10:31 PM
I dont see any issue unless the state field has a different name or the state values are not matched.
Also make sure, Form button checkbox is selected. And there is no role linked to the UI action.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 10:50 PM - edited 06-06-2024 11:37 PM
Thank you. Form button checkbox is ticked, and there is no role linked to the UI action.
Somehow it does not work with that one condition for the field value.