- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2023 11:00 AM
For OOB UI Action "Revert to New" on change request table i need to add popup - as 'do you want to revert'.It should show two options yes no . If yes it should revert else it should not.
OOB code:
revertToNew(current);
action.setRedirectURL(current);
function revertToNew(changeRequestGr) {
var changeRequest = new ChangeRequest(changeRequestGr);
if (!changeRequest.revertToNew())
gs.addErrorMessage(gs.getMessage('State Model for {0} changes does not allow reverting change from {1} state', [changeRequest.getValue('type'), changeRequest.getDisplayValue('state')]));
}
Please help me in adding the popup with options.Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2023 03:20 AM
@servicenow14710 You can create a new UI page and call that UI page to existing 'Revert to New' UI Action.
UI Page :
UI Action :
make sure to provide Action name, Check the 'Client' Check box and give a name to onClick function.
Update UI Action Script as below :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2023 11:20 AM
Hi,
The following looks like it is what you want:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2023 11:40 AM - edited 05-11-2023 12:12 PM
@Bert_c1 : Thanks Bert, This popup is OOB . I need this popup to come like a alert window with option syes, no.
I need this customisable popup using GlideModal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2023 12:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2023 03:20 AM
@servicenow14710 You can create a new UI page and call that UI page to existing 'Revert to New' UI Action.
UI Page :
UI Action :
make sure to provide Action name, Check the 'Client' Check box and give a name to onClick function.
Update UI Action Script as below :