UI Action not working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 01:50 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 03:39 AM
Hello @Deepika Mishra Did you check UI policies?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 04:36 AM
Yes @Mohith Devatte all client and server side script checked already, nothing is blocking.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 09:11 AM
Can you confirm if the client check-box on the UI action is checked (set true)? g_form.save() is only client side.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2023 03:27 AM
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.