Custom variable data type in service catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Earlier i had one requirement , to show url in service catalog item , so tried variable type url but it was not clickable.
So I explore other data type then i get to know about custom variable type .
"Custom" is specific Service Catalog variable types used to embed complex UI elements like widgets or macros directly into a catalog item form.
So I tried that on my pdi for testing :
1)created macro for native ui
2)created widget for portal
3)custom variable
output :
Now my url is clickable .
Just sharing this content here for other community members to know about Custom variable type .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Aditya_hublikar , There is no need for creating a UI macro.
Just create a variable with rich text and then embed the link into it, that's all you will be able to click on that link as well. Let me know for any further need in configuring the variable.
If this solution helps you please give it a 👍and mark it as accepted solution.
Regards,
Saurabh V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @svirkar420 ,
Thank you for replying I just have one more query , If link want dynamic means , for example for variable a there is link a , for variable b link b should visible . Is it possible to create only one rich text label and dynamically change inside href link .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Aditya_hublikar , You can control this behaviour by showing and hiding the rich text label variable in catalog form using catalog UI policy and for more flexibility use catalog client script. By using this you can hide and show particular variable to your form.
if you share the exact requirement I can tell exatly what you will need to use and how you can configure the same.
If this solution helps you please give it a👍 and mark it as accepted solution.
Regards,
Saurabh V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @svirkar420 ,
Yes but can we perform this on single variable ? without creating multiple variable .