- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2023 05:16 AM - edited 09-13-2023 05:18 AM
var ans = confirm(" The customer is notified of all P1 incidets.Confirm basic information is collected before submitting
this P1 incident. \n\nSelect OK to submit or Cancel to return to the record ");
I am getting error for this and return. May be its because they are keywords, but what should be the replacement of such words in my statment.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 06:10 AM
Hi @gsindhu26 ,
I think you must try pressing backspace before "this" or rewrite the whole string again.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2023 05:18 AM
should not be an issue. the message within confirm box should accept any keywords.
it's breaking since you are giving \n which is a new line character and it won't work there. Also you cannot use html tag such as <br/> to add new line.
Just remove \n\n and it will start working
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 06:10 AM
Hi @gsindhu26 ,
I think you must try pressing backspace before "this" or rewrite the whole string again.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 06:53 AM
Yes i was so stupid... It was a silly one. Thanks for it