Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Pop A Modal Box When Clicking a Context Menu Item

fcaruso123
Tera Expert

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

 

 

1 REPLY 1

GlideFather
Tera Patron

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

_____
Answers generated by GlideFather. Check for accuracy.