Can I create a dialog popup when the Post button is pressed for Additional comments?

Alex Palegeorge
Tera Expert

Hi ServiceNow community.

Requirement: I have a requirement to add a confirmation pop-up dialog box, asking users to confirm before adding comments to an Incident, under certain conditions.

 

I have successfully created the desired behavior for when the user presses the save or update buttons, by using an onSubmit client script:

desired-outcome.png

 

The problem: I also need the dialog box to appear when a user clicks the Post button, to add their Additional comments. I also need to replicate the behavior in a workspace, too.

post-button.png

I have not been able to find out whether it is possible to edit the scripted behavior of the post button, or whether the journal insert action can be caught and interrupted client-side.

What is the best way to create a pop-up dialog when a user posts additional comments?

Much appreciated. Thank you

1 REPLY 1

Alex Palegeorge
Tera Expert

I ended up finding a work around for this solution that was acceptable by the customer.
We are using special handling notes to inform users that they are viewing a parent incident.