- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2019 11:49 AM
Use below code
g_form.showFieldMsg('center_access','Please go to + <a href = 'https://www.google.com'>Click</a> + and my random text', 'error');
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2019 12:06 PM
Hello Sachin
it didnt work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2019 12:13 PM
Sorry, Hyperlinks are not supported in gs.showFieldMsg method.
please use below code
function onLoad() {
g_form.addInfoMessage("Please <a href = '/incident_list.do'>Click</a>");
}
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2019 12:33 PM
Hello Sachin , its working fine but not a feasible solution for this issue . the info message is not visible as it is displaying on the top , Mine is a long form where your may not notice that , can we include that in alert?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2019 01:32 PM
You can't add hyperlink in alert() method.
But, you can use below DOM manipulation in your client script with CAUTION to achieve your requirement
$('element.incident.urgency').insert({
after: '<tr class="info_message_row"><td colspan="2"><div class="outputmsg_info"><img src="images/outputmsg_success.gifx" alt="Please fill up"><a href="http://www.google.com">Google</a></div></td></tr>'
});
Note : DOM manipulation is not recommended since it may break during future upgrade.
Regards,
Sachin