Need to display link on change form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2022 08:15 AM
Hi Team,
My requirement is to display a link on form so that user can click on that and it will redirect to another page.
I tried with "url "field type and i have provided the link in default value which i need to show on form.but field is coming but not the link.
Another way I thought to use annotation in slush bucket, but that is not visible.
Could you please help me on this.
Regards,
Shreya Sinha
- Labels:
-
Change Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2022 08:39 AM
What is the default value you provided for the field?
Regards,
Christopher Perry
Regards,
Chris Perry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2022 07:32 PM
Hi Christ,
I have provided thelink which needs to be display.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2022 07:43 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2022 08:43 AM
Hi Neha,
I would say add 1 checkbox, when user click on that checkbox it will redirect to particular link, you need to create onChnage() client script. Ref below script
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var Type = g_form.getValue('type'); // you can remove if block
if (Type == 'true') {
var gURL = this.location.href;
var pathname = new URL(gURL).pathname;
var redirectURL = pathname + '/com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=6f76071edb5320507cc7a334ca9619bd';
top.window.location = redirectURL;
return 'yes';
} else {
return 'no';
}
}
//Type appropriate comment here, and begin script below
// This script is you if you are using instance url so it will take autmatically current
// instace. means if you move this code from other environment you need not worry to chnage url every time OR you can directly set some URL in Redirect URL
Let me know if you face any issue here
Kindly mark correct and helpful if applicable