Based on reference type of variable selection we need to display the link in below

mani55
Tera Contributor

we have software name variable is there and it's a lookup select box variable so based software name selection that software name related link we need to display like  below 

 

mani55_0-1779782210171.png

 

 

example :

 

software name: Auto Viewer & Editor
Link: companyportal:ApplicationId=720fb74b-3e24

This product is already available in Company Portal.

Click here to access it and install the product by yourself!
If you require installation support or need to install a specific version not available in the Company Portal, please select YES in the installation assistance question and specify the required version in the Description field.

software name:  Task & Reminders
Link: companyportal:ApplicationId=fd83f41e-1b5039a9bcac

This product is already available in Company Portal.

Click here to access it and install the product by yourself!
If you require installation support or need to install a specific version not available in the Company Portal, please select YES in the installation assistance question and specify the required version in the Description field.

 

how we can archive this scenario through widget

8 REPLIES 8

GlideFather
Tera Patron

ahoy @mani55,

 

why would you do that through a widget? it seems to be a catalog item (eventually record producer) form, can you confirm?

 

Create a variable that will be displayed only when the previous variable contains your desired value, you can achieve it by catalog client script (onChange, scripted) or by catalog ui policy (condition builder, script optional) and corresponding action.

 

Share what you have created for a review

_____
Answers generated by GlideFather. Check for accuracy.

Links are not dynamic for every product  those are also separated and we need to display catalog item form.

 

Ankur Bawiskar
Tera Patron

@mani55 

why not use a variable of type HTML and then set the HTML content inside it dynamically using onChange catalog client script?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Could you please provide me sample script