Pop A Modal Box When Clicking a Context Menu Item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Have a requirement to force a user to enter a comment when rejecting a change record, from the change record approval tab. Out of the box, the system does not force this. I was able to find the UI action that runs on the List Context Menu but using objects like GlideModal and spModal to prompt the user for a comment are not allowed/available. When added they throw errors in system log.
Is what I am trying to do possible?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago - last edited 4 weeks ago
Olá @fcaruso123
you can create a new custom field, something like "Rejection Reasons" and hide it unless state is changed to close rejected, then it would be displayed and became mandatory.
If you decide for this, restrict the state change in a list view that could bypass it :))))
EDIT: and if you don't want to create a new field, then write a client script to make additional comments mandatory, with an info message "Please explain your motivation to reject this"), but again rejection in list view will avoid that mandatory comment
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */