Unable to show/hide UI action located at the bottom of the form through a UI policy.

Nandhini Sri
Tera Contributor
 
5 REPLIES 5

Basheer
Mega Sage

Hi @Nandhini Sri 

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 hit like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.

Cheers,
Mohammed Basheer Ahmed.

Amit Pandey
Kilo Sage

Hi @Nandhini Sri 

 

You can hide the UI Action from the UI Action itself by writing certain role based conditions.

 

Regards,

Amit

Nandhini Sri
Tera Contributor

need to show button only when state changes

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 hit like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.

Cheers,
Mohammed Basheer Ahmed.