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.

Question popup modal message client script

Jessica28
Tera Guru

Hello,

I am trying to implement a popup modal message for a change request using client script. I am encountering an issue where a popup message won't stay. It disappears immediately after it pops up (see attached video).  Thank you

 

Jessica28_0-1712105763641.png

 

5 REPLIES 5

Hi @Jessica28,

 

A few options to explore, listed in the order of my preference (I do not recommend the last option):

 

  • Rather than attaching a form, populate one of the Change request's fields (e.g. Justification) instead. Make the field mandatory
  • (Prerequisite - you must be using Change Model) Use a Model State Transition Condition to validate if there is an attachment
  • Create a custom 'attachment' type field on the Change and set it mandatory

Can you elaborate on what this attachment/form is? It might open up other ideas.