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

Only the Save button which is button created on the widget works and the Ui Action on the original form does not work:- 

 

<button ng-if="getPrimaryAction()" type="submit" ng-click="triggerUIAction(getPrimaryAction())" class="btn btn-primary action-btn pull-right">${Save} <span ng-if="saveButtonSuffix">(${{{saveButtonSuffix}}})</span></button>

SanjivMeher
Kilo Patron
Kilo Patron

Does your UI action has an action name?


Please mark this response as correct or helpful if it assisted you with your question.

No it does not. Shall it have?

I select a value from the drop down. I click on "Start" UI Action(Custom and also has a name now). The value of the fields reverts to "None"

Can you post the script you have on the UI action? 

Also note that action.setRedirectURL doesnt work on Service Portal.


Please mark this response as correct or helpful if it assisted you with your question.