Employe portal/ESC . A link should open up directly instead of hitting the Link

Research
Tera Guru

Hi
Can any 1 help
How to achieve the Service portal 
when a user choose the option as "No" in variable type(Yes/No)

A Link of the form automatically should load in new window or display like pop up to fill
Employee Portal screenshot

Research_0-1747726905666.png

 


please let me know

Thanks,


1 ACCEPTED SOLUTION

@Research 

did the script I shared not work for you?

It should work and based on value it should open the URL in new tab

share your script and what debugging did you do?

OR

1) Another way is to use variable of type "Custom" and add widget to it, add HTML link there

2) Then show/hide this variable based on the Yes/No value

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

5 REPLIES 5

Cheikh Ahmadou
Tera Guru

You can add a widget as a custom variable and manage the popup and screenshot upload in it.

Ankur Bawiskar
Tera Patron
Tera Patron

@Research 

you can open the other catalog item in new browser tab using this logic in onChange catalog client script

function onChange(control, oldValue, newValue, isLoading) {
    if (isLoading || newValue == '') {
        return;
    }
    if (newValue == 'no') {
        var url = '/esc?id=sc_cat_item&sys_id=catItemSysId';
        // use this for native
        g_navigation.open(url, '_blank');
        // use this for portal
        top.window.open(url, "_blank");
    }
}

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Research 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Research
Tera Guru

Hi Ankur No luck"
Thanks

Atleast we need hyper link beside PLEASE ex: (Click here) 
when a employee choose question as "No"  below label is displaying in that we want hyper link Please "CLICK HERE"(hyper Link)

Thanks for your response

 

Research_0-1747812861602.png