UI Actions not working on the FORM widget in Service Portal

Shahid
Tera Contributor

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

16 REPLIES 16

Shahid
Tera Contributor

yes, in the UI Action script field. Will there be any issue in that?

Shahid
Tera Contributor

Thanks for the link but my problem is not with redirecting. My UI Action does not save the form at all on the portal but when you click the same button on the normal view i.e legacy servicenow view it works just fine. And this is where i am stuck. i am using the below two lines in my code:-

current.update();
action.setRedirectURL(current);

Refer below link:

https://community.servicenow.com/community?id=community_question&sys_id=3c7083e1db98dbc01dcaf3231f9619c0

Shahid
Tera Contributor

Commented that part out but no luck. 😞