- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2019 09:07 AM
Hi,
I need help to add help text to check box type variable.
Help text contain the url of another catalog item. I tried with onLoad catalog client script but it didn't work as expected.
function onLoad() {
//Type appropriate comment here, and begin script below
g_form.showFieldMsg('varaible_name','text ..............' , 'info');
}
FYI - When I tried this script I got below message.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2019 10:33 PM
Hi,
It seems field message doesn't allow url to be shown
can you try to do this using annotations
right click form -> configure form layout
add annotation just below the field you want to show the url; in the annotation add the url you want
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2019 09:13 AM
Hi,
Is this not working now after using the above in onload? what it is showing up?
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2019 09:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2019 08:48 PM
Hi,
can you try to update code as below; sample for example
var urlString = '<p><a class="web" target="_self" href="' + "www.google.com" + '">' + "visit" + '</a></p>';
g_form.showFieldMsg('varaible_name', url , 'info');
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2019 03:28 PM
Hi,
I tried that code to bring the url but unfortunately, it didn't work.
Thanks