- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 04:03 AM
Hi All,
How can I add a URL link for a selection of say 'Yes' on a Catalog Choice variable? The URL link should get populated just below the message and upon clicking should help download an excel file
Regards,
Saurabh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 04:31 AM
you want to show text along with URL inside it right?
You can do this
1) create a rich text label variable and it supports HTML tags etc so you can show the link along with text
2) use Catalog UI policy to show this rich text label variable when value is Yes
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 05:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 05:15 AM
Hello @chatsaurav19
As per community rules, you can mark multiple solution as Accept.
If you find my response as helpful, Plz mark my solution as Accept.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 05:10 AM
Hello @chatsaurav19
1. To download upon clicking - First add your excel sheet in ServiceNow instance (sys_attachment) table.
2. To create link add variable of type "Rich text label" and put the order after your "request bulk" variable &
add link there as -
Click on the link icon and add above link there :
3. You want to display it on some condition - so you can write onChange client script on your first variable (request bulk)
//use your variable backend name wherever necessary
function onChange(control, oldValue, newValue, isLoading) {
if(newValue == 'Yes'){
g_form.showFieldMsg('request',"Your message",'info');
g_form.setVisible('link',true);
}else {
g_form.setVisible('link',false);
}
}
Output :
If - Yes
If - No
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates