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

I have a portal request for managers to order food for their teams.  Each vendor has a minimum number of meals which can be different.  I have a field called 'number_of_people which determines which qualifies the vendor query.  I created a script include which returns the generated reference qualifier. 

 

Here is how it's set up:

Reference Variable

Script Include:

This works like a charm.  I used Will's PowerPoint posted above as a reference.

This helped me a lot, thank you!