Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

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

Hi,

Sorry that you're having trouble.

Can you try the full url, perhaps with your whole instance in it?

I've tried again with full instance URL and it works. So that should do it for you.

Thanks

Hi,

I just wanted to check in on this. If my reply helped guide you correctly, please mark it as Helpful & Correct.

Thank you!

Yes, as it involves anglar. You have an option of submission of request from backend as well?

Yes, I need to have the option to submit from the backend as well.

Configure below kind of onchange client script on your variable to show catalog item link

 

function onChange(control, oldValue, newValue, isLoading) {
    if (isLoading || newValue == '') {
        return;
    }

    if (g_form.getValue('req_for') == '62826bf03710200044e0bfc8bcbe5df1') {

		
    g_form.addInfoMessage("Please click on <a href = '/com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=ce8e4fb0db672b008d73771c8c961902'>Click</a>");


    }
    //Type appropriate comment here, and begin script below