- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2019 11:35 AM
Hello there
I have a requirement where we have a multi choice variable on catalog item, with 3 choices
if choice 3 is selected we need to show a error message , which we are doing with client script , in that error message we are redirecting user to another link , as of now we are just displaying the full link in the error message , can we just use click here and hyper link the user from there ?
instead of www.google.com can we add click here so that it will redirect them to web page in new window?
Below is my on change script
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if(newValue == '2'){
g_form.showFieldMsg('center_access','Please go to www.google.com and my random text', 'error');
}
}
Solved! Go to Solution.

- 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 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?