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.

Need to populate the alert on the form level

vinuth v
Tera Expert

Hi All,

 

I am working on the on of the form in this form I have requirement link when on Submit of the form I need to display the alert and form is not getting submitted(need to restrict the form submission only alert need to display when user click on the submit button)

 

I tried like below, in the alert message I have URL as well but I am getting error like below when I trying to save the onSubmit script.

 

vinuthv_0-1708080519009.png

Please any one provide me the input,

Thanks,

Vinuth

6 REPLIES 6

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @vinuth v 

 

LearnNGrowAtul_0-1708080796176.png

 

seems ) is missing at end.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

I have included this ) but when I use the URL at that time I am getting this error. If it is the text then working  fine.

Sorry 😞 

 

g_form.addInfoMessage("<a href='www.google.com' target='_blank'>Google</a>");

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************