- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2020 02:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2020 05:32 AM
Hi,
here you are not setting the approval value properly
jr.setValue('approval', 'requested');
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2020 03:18 AM
hi,
you have to create ui action which will be available on both side as in backend and on portal view
in the condition of ui action check state.
for example like state!='approved'
check in your catlog item what is state value when catalog item is approved
Mark this answer as correct if helps.
Thanks,
Manjusha Bangale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2020 03:41 AM
Thank you , but I didn't get can you please explain briefly?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2020 04:27 AM
hi,
on sc_req_item table create ui action as button.
in the condition add below code
current.state!='approved'
so just check this ui action on portal
is this visible or not before adding above code in condition of ui action
Thanks,
Manjusha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2020 04:46 AM
please refer below steps
1) create server side UI action on sc_req_item table
2) condition as below
current.approval != 'approved'
3) In order to show that only for itil view you can go to the related list of UI Action and include the itil view
Refer images below for help:
Script: user your choice value here for cancelled state
cancelRITM();
function cancelRITM(){
current.state = '5'; // give here the choice value for cancelled
current.update();
}
UI Action Related List: include this only for ITIL view
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader