Unable to show/hide UI action located at the bottom of the form through a UI policy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2024 05:32 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2024 05:40 AM - edited ‎03-28-2024 05:41 AM
do you want to hide the ui action totally or just the button at the bottom and show it on the header of the form?
Why do you want to hide it using ui policies when you can do it using conditions(through conditions it will not be visible on the header as well)
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2024 05:43 AM
You can hide the UI Action from the UI Action itself by writing certain role based conditions.
Regards,
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2024 06:04 AM
need to show button only when state changes

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2024 06:26 AM
just mention the condition
//Use any one of the below code based on your scenario
current.isValidRecord() && current.state == 'your_state_value'; // If you want to show on specific state
current.isValidRecord() && current.state != 'your_state_value'; // If you want not to show on specific state
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.