hyper link in showFieldMsg on load client script
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
How can I add hyper link using onLoad client script and
g_form.showFieldMsg
(for example the user will see 'click here' and it will redirect to google)
My field name is: u_priferia
table name: sn_slm_case
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
44m ago
Hi @Alon Grod
By default, ServiceNow's g_form.showFieldMsg treats text as plain string and escapes HTML tags.
OOB it is not supported.
You need to write an onLoad Client Script that pushes a placeholder message and dynamically updates the DOM element ( DOM is not recommended).
Refer for DOM onload script:
Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti