UI Action not working

Deepika Mishra
Mega Guru

I have an UI Action which set values for a field and then using g_form.save() , saves the form. This is working absolutely fine with admin user but with other user it is not working as per expectation.

 

g_form.setValue('state', '5');
g_form.save();

 I added alert in order to see what value it is setting, so the value gets captured properly but after saving for a fraction of second it will show State = '5' (Completed), but once the form loads it takes the previous stored value of the field. I don't have any role specific arrangement for this UI Action and neither does have any client script/BR running behind.

Please let me know how can I fix this. 

8 REPLIES 8

Hello @Deepika Mishra Did you check UI policies?

Yes @Mohith Devatte all client and server side script checked already, nothing is blocking.

Robin John
Kilo Sage

Can you confirm if the client check-box on the UI action is checked (set true)? g_form.save() is only client side.

Igor __tek
Tera Contributor

Hi Mishra,

you can use a server-side code in the script of your UI - Action to make the save happen.

The use case is that you use your client-side code for what you need it and then call a server-side script in the same Ui action. 

Igor__tek_0-1680172022713.png