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

Kalaiarasan Pus
Giga Sage

You are doing this onload of a client script. A better alternative would be to use the UI action's condition to do this.


Can you please explain. because i am trying this since morning. not getting exact results


Hi Amol,



You can put the condition in the ui action condition field or else onload should also work just check if it could be == sign instead of '>' -1.



Hope it helps.


rajmasurkar
Giga Guru

Hi Amol,



Kalai is correct.


Use the condition field in that particular UI action to achieve this.





Raj