How to hide button from form on condition?

IamAmolB
Tera Guru

Hi Experts,

I have written this code but it is not able to run can you please suggest what to do any update on below code. please suggest

find_real_file.png

No error No warnings.

still not able to run. please suggest.

1 ACCEPTED SOLUTION

Hi Amol,



Search for the ui action that you want to hide.


Open it, you will find condition field in it. You can mention your condition for the visibility of that ui action there.


Below is the snapshot for reference.




UI Action form.jpg





Raj


View solution in original post

22 REPLIES 22

IamAmolB
Tera Guru

I want to hide this button on state change. thats way i was trying it on client script.


can you please elaborate what exactly would be the solution.


Hi Amol,



Search for the ui action that you want to hide.


Open it, you will find condition field in it. You can mention your condition for the visibility of that ui action there.


Below is the snapshot for reference.




UI Action form.jpg





Raj


Thank you So much Raj.


Its Working Now


Hi Amol,



Inspact the button by pressing F12, and get the button element id.



find_real_file.png



After getting the is as per above image use below code in client script :



document.getElementById('resolve_incident').style.display = 'none';



Hope it will resolve your problem, if you have any doubt please let me know.



Thanks,


Param


Thank you. I tried this method too but Ui Action helps there this function is not working.
But really thank you so much for your help. you help a lot in this