What type of variable can be use to populate number+short description which contains in URL

chandan15
Tera Contributor

Hi All,

I have a catalog item which have 3 variables.

If we type any texts in 1st variable, it will search in "kb_knowledge" table which body contains ast variable texts.

I would like to populate the above in a type of variable where it will show numer + short description alongwith URL, where we can click it to redirect the url.

chandan15_0-1691674031340.png

Any suggestion which type variable can be use here, where I can use g_form.setValue(), with a client scriupt......

3 REPLIES 3

Samaksh Wani
Giga Sage
Giga Sage

Hello @chandan15 

 

 

Variable type URL can be used for redirect.

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.

 

Regards,

Samaksh

there will be multiple record will appear, so we need that kinda variable

Ankur Bawiskar
Tera Patron
Tera Patron

@chandan15 

you need to use a Custom type of variable and handle this using widget on portal and using UI macro in native view.

Inside the widget observe the onChange event of the 1st variable and then perform lookup in kb_knowledge table and show the hyperlink

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