How to get the hyperlink in Onchange Catalog client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 05:29 AM
Hi all,
I need to get the hyperlink in Onchange catalog client script in which it should have another catalog item. It is the variable set, So i am not able to use the macro, UI Page. Is there a way can we achieve it in ErrorBox/ showfieldmsg.
Thanks,
Suvedha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 06:36 AM
You can use HTML tags in g_form.addInfoMessage or g_form.addErrorMessage
g_form.addInfoMessage("Please <a href = '/incident_list.do'>Click</a>");
g_form.addErrorMessage("Please <a href = '/incident_list.do'>Click</a>");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2024 07:35 PM
Hi Brad,
Is there a way can we achieve it by UI page as it is we are trying to get in variable set.
Thanks,
Suvedha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2024 11:23 AM - edited 06-21-2024 11:27 AM
@Suvedha2 @Suvedha Vignesh You can try by creating a variable type"Rich Text Lable" and onchange client script you can fill the value as HTML. check below image and video i have created.
test variable set having one yes/no variable and one rich text label
client script: when its changing to yes, i am setting the rich text label to a hyper link
Check the gif attached for the result.
Mark it helpful if it works for you.