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.

Is there any character limit in adding information to the alert()?

Bhavani13
Tera Contributor

Hi

We have a requirement to add the alert message which is more than 2000 characters. When we tried to add the message, it is not showing all the information in the alert. 

 

May I know is there character limit for that and can any one help me in achieving this.

 

Thanks in Advance!

 

Thanks,

Bhavani.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Bhavani13 

Are you expecting user to read those 2000 characters in an alert?

Not a good user experience.

you can show UI page and use <p> tag to show the details rather than alert box

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

2 REPLIES 2

Mohith Devatte
Tera Sage
Tera Sage

Hello @Bhavani13 ,

I think alert cant show such big informations .

 

you can use modal windows for this .

But can you please let me know where exactly are you try to show alert and when are you try to show ?

 

is it in some client script?

Ankur Bawiskar
Tera Patron
Tera Patron

@Bhavani13 

Are you expecting user to read those 2000 characters in an alert?

Not a good user experience.

you can show UI page and use <p> tag to show the details rather than alert box

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader