How to make UI Action invisible from UI policy or Client script based on condition

Asmita7
Tera Expert

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.

11 REPLIES 11

Tai Vu
Kilo Patron
Kilo Patron

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

amol9
Tera Contributor