Help in adding link in field message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2020 02:17 AM
Hi Community,
Need help in adding a link in field message ?when user clicks on it, it should point to new window.
Thanks,
Pihu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2020 02:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2020 02:28 AM
Field messages don't support HTML, you can do it on form info message if that works for you
Something like
g_form.addInfoMessage("Please <a href = '/incident_list.do' target='_blank'>Click</a>");

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2020 02:23 AM
Hi Pihu,
Something as below in business rule would do.
var link = '<a href="https://www.google.com">Link</a>';
var message = "<p>Click "+link+" here!</p>";
g_form.showFieldMessage('<field name>',message,'info');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2020 02:44 AM
Hi Jaspal,
Yes tried , but not working.
it's giving me output as below.
<p>Testing <a href="https://www.servicenow.com">Link</a> has been created!</p>