UI Actions not working on the FORM widget in Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2018 08:29 AM
Hi,
The UI Actions on the FORM widget dont update the fields as per its server side script. The widget i am using is just a clone of the Form widget and still the normal server side UI Action dont work. When clicked the Updated message shows up in green on the top and nothing happens to the fields on the form neither the changes made to the form get saved.
Also note that these UI Actions work smooth and fine on the legacy view(Service Now normal view)
Any idea what should have gone wrong?
Thanks,
Shahid
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2018 09:34 PM
Below is the script. Question:- Will setRedirectURL cause any harm if it is there in the script??
if(current.approval=='A' || current.approval=='A_S' || current.approval=='A_R' || current.approval=='A_S_R'){
current.assignment_group='9a21274edb7a9f00a5b2126b3a9619af';
current.status='A';
}
else if(current.approval=='S' || current.approval=='S_R'){
current.assignment_group='cf12274edb7a9f00a5b2126b3a9619b3';
current.status='S';
}
else if(current.approval=='R'){
current.assignment_group='d132abcadb7a9f00a5b2126b3a9619bf';
current.status='R';
}
current.update();
action.setRedirectURL(current);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2018 12:03 PM
I don't see any problem with your script. RedirectURL shouldn't cause any issue, but remove it and try if that works.
Is there anything in your client controller, that you added could be causing the refresh?
If you have a custom form widget, try opening the same record in the OOB form widget and see if that works.
Please mark this response as correct or helpful if it assisted you with your question.