The CreatorCon Call for Content is officially open! Get started here.

Service Portal - Catalog item variable reference qualifier not working

shill
Mega Sage

In reviewing the Service Portal, I've noticed that they item widget does not seem to accept a reference qualifier I have on some of my variables on a few items.

The variable is a Lookup Select Box type variable that references another table using the sys id as the lookup value field.

The qualifier is calling a script include to return sys id's for a reference field.

This all works in the base standard catalog, but does not show any selections in the Portal.

Any ideas on what may be the issue?

1 ACCEPTED SOLUTION

I was able to get this working by changing the variable type to Reference.



Not a great UX in the catalog, but from the Service Portal the UI is nearly identical. When it is a reference, it appears the reference qualifier is run when you click on that field rather than just onload as with the Lookup Select variable type.


View solution in original post

16 REPLIES 16

You need to pass the u_natural_gas into your script include. Set the Reference qual to:



javascript:getPipelineProduct(current.variables.u_natural_gas)


The issue is not that the advanced reference qualifier does not work (it works as expected in the standard catalog UI), but that it does not work in the Service Portal.


Script include works fine without passing the value as I pull from current in the script.


I was able to get this working by changing the variable type to Reference.



Not a great UX in the catalog, but from the Service Portal the UI is nearly identical. When it is a reference, it appears the reference qualifier is run when you click on that field rather than just onload as with the Lookup Select variable type.


Yeah, I just discovered that as well.


I just hate to bring it to the users when they are used to the lookup select box (they have 3 layers they have to select, so it is quicker for them than the reference types).