Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Formatting confirm dialog pop-up boxes

yundlu316
Kilo Guru

Our team has onSubmit client scripts that bring up a confirm pop-up dialog box:

var action = g_form.getActionName();

if(action == 'submit_revision') {
  var submit_answer = confirm('Please confirm that all supporting documentation is attached to this request.  Select Cancel to return to the form.  Select OK to submit.');
  if(!submit_answer) {
    return false;
  }
}

Right now, that pop-up box shows our instance name and then the confirmation message:

find_real_file.png

Is there any flexibility in taking the instance name out and replacing with an actual title?  Thanks!

4 REPLIES 4

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Im afraid that will not be possible, only alternate would be if you make a ui page and use that as a popup here. but id suggest to stick with this as this is the simplest solution and doesn't require any custom objects to be created.

It is actually a security/anti phishing feature why this is locked.

-Anurag

-Anurag

hm interesting...thanks @Anurag Tripathi !  Is there an option to hide the instance name or does that have to be there?

I dont think there is any possibility to manipulate this.

IF it is so important then id suggest you create a custom ui page and show it. On the ui page (being used as a popup) you can control the title.

-Anurag

-Anurag

Hi,

Just checking if this is answered?

Please mark my answer correct/helpful and close the thread if this is answered.

-Anurag

-Anurag