- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2016 03:09 PM
I need my selection list to be hyperlinks. I would like to link it to another form, is this possible?
Thanks in advance.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2016 06:19 PM
I am not sure about providing hyperlinks in choice list but there is an alternate workaround for this applying onChange script based on the choice values.
Script:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue == '') {
return;
}
if(newValue=="Your Choice Value 1")
window.location.href='problem.do';
if(newValue=="Your Choice Value 2")
window.location.href='incident.do';
.............................
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2016 06:55 AM
Check the choice element value of "Corporate FTP" , in if condition you have taken label name, take the element value. Moreover in the alert you given 'new value', actually that should be without any colons newValue. So if you get any result in it, your script will work fine.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
alert(newValue); //Take the value this is the actual element value.
if(newValue=="Corporate FTP"){
alert(newValue);
window.location.href="https://rrd.service-now.com/com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=b74b3622bd82...";
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2016 07:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2016 07:16 AM
Are you getting any alert?
Sent from my iPhone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2016 07:19 AM
Yes, I get the newValue alert.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2016 08:44 AM
Can you check popup blockers on your browser and try it in multiple browsers?
Sent from my iPhone