HTML Tag in Confirm()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2023 05:02 AM
Hi All,
How can we write HTML tags to make text font color to 'red' and bold?
Eg:
var solution = confirm("Create Incident and Propose it to major incident and then add any incident to parent field");
In the above confirm msg i need to make entire text into 'red' color and "Propose it to major incident", & "add any incident" should be in bold too.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2023 05:05 AM
not possible with javascript prompt such as confirm, alert etc
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2023 05:08 AM
check this library SweetAlert
It's freely available on Share:
https://developer.servicenow.com/app.do#!/share/contents/1320723_sweetalert_2?v=2&t=PRODUCT_DETAILS
Have a look at some examples here:
https://sweetalert2.github.io/
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader