UI Action pop up to capture input
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 08:11 PM
Hi there,
I want to add a button/link 'Cancel Request' which is also visible from Portal view of a logged request. When clicked I want it to trigger a pop up message 'Please enter your reason for cancelling ticket' with a text field that takes the input from requestor and writes it to the applicable field work_notes.
I have created a UI Action where action name is 'cancel_request'. (see script below)
When I include the client script portion it pops up a screen on the form in the back end when clicked but doesn't update the record status (doesn't call the server script portion) and the link doesn't show at all the portal side.
When I exclude the client script portion, a link appears as expected on portal view of request and it cancels the record accordingly when clicked but I can't capture any input i.e. reason for cancellation.
I'd love to understand why this isn't working please.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 08:33 PM
Hi @A Kose ,
Check my response on below thread. Follow the same approach to take the input on model and use them to update the record.
You need to tweak the logic a bit based your requirement but process you need to follow the same.
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 08:50 PM
client side UI actions won't work in portal
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader