How to make UI Action invisible from UI policy or Client script based on condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 09:54 PM
Hello friends,
There is an OOTB UI Action which I do not want to customize.
My requirement is that the UI Action is visible based on some condition / inputs on the page.
Can I achieve it through UI policy or client script ?
Please suggest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 10:57 PM - edited 12-27-2023 10:57 PM
Hi @Asmita7
You can consider to deactivate the OOTB UI Action and just leave it there without changing anything. Then clone it to a new record, do your own customization in the new UI Action.
If you'd like to implement through Client Script, you can refer to below as a sample.
(make sure the Isolate script checkbox is unchecked)
document.getElementById('<ui_action_name>').style.display = "none";
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 04:02 AM