Add Link to another catalog item

brittanyg_
Kilo Expert

I've seen several posts on this but nothing that made sense or was accurately answered recently. I want to add a link to another catalog item if a certain selection is chosen. i have a request form for software, if a certain software is selected then I want a link to appear to another catalog item to submit a separate request. This seems to not be an easy thing which is very surprising since you can add it to the description.

18 REPLIES 18

sachin_namjoshi
Kilo Patron
Kilo Patron

You can configure on change client script to provide hyperlink with catalog item.

 

Regards,

Sachin

Jaspal Singh
Mega Patron
Mega Patron

There are many options for configuring starting to client scripts, ui policies but better you follow below.

1. Create a simple widget : Linkitem with below snippet in body html where sp is portal name while sys_id is the sys_id of item

<div>
<span>Your Text goes here <a href="/sp?id=sc_cat_item&sys_id=039c516237b1300054b6a3549dbe5dfc">Item name</a><br>
</div>

2. Create a variable of type Macro & save it.

3. In the same variable that is created & saved you will find Type Specifications tab where you can specify widget (Linkitem) created above.

This works, but is only viewable on the portal. How can I make this viewable on the portal and fulfiller view.

You'd do something similar except for back-end UI you'd create a UI Page and use that variable type to show link back there.

find_real_file.png

find_real_file.png

So you'd have two fields right? Then to save space...there'll be a big white space gap on the standard-ui (when you have these two fields set to show once the specific selection is made and you want to show the links -- fyi white space thing only applies to standard-ui not portal)...you'd want to (in the same UI Policy you're using to show these two fields), in the script tab, set it to "Desktop" and then in the true script field put:

g_form.setDisplay('portal_macro_field_name', false);

A little extra tip for you 😉

Please mark reply as Helpful, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!