- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2018 04:04 AM
Hi All,
I need to provide the dynamic link to the form like "Take assesment". In catalog item form.
My aim is to assign one quiz to the user who are selected in the same form through the Client script. Then I have to display the link to that quiz(This quiz link will have sys id of the quiz assigned to that particular user).
I can able to get the Exact link only after getting the user name from the form. If it is the static link I can directly display it for all users.
Kindly suggest any method to achieve this.
Thanks
Venkatesh Dhanapal
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2018 10:03 AM
Hello Venkatesh,
you can achieve this by using widget. create a widget with HTML to have <a></a> tag and have the href value as some variable.
in the same widget, have server side script to compute the URL and show assign the url value to the variable used above.
you can create a macro type variable and then give this widget reference in default value tab. It should work as per your requirement.
please refer below URLs for more details on widget creation.
https://docs.servicenow.com/bundle/london-servicenow-platform/page/build/service-portal/concept/adv-widget-tutorial.html
Let me know for any query.
Thanks,
Ali
Thank you,
Ali

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2018 10:03 AM
Hello Venkatesh,
you can achieve this by using widget. create a widget with HTML to have <a></a> tag and have the href value as some variable.
in the same widget, have server side script to compute the URL and show assign the url value to the variable used above.
you can create a macro type variable and then give this widget reference in default value tab. It should work as per your requirement.
please refer below URLs for more details on widget creation.
https://docs.servicenow.com/bundle/london-servicenow-platform/page/build/service-portal/concept/adv-widget-tutorial.html
Let me know for any query.
Thanks,
Ali
Thank you,
Ali

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2018 07:06 AM
Hi,
Is your problem solevd??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2020 02:20 AM
hlo