Auto-pick list collector option if there is only one option available.

Brian Bouchard
Mega Sage

I have a requirement for our Service Catalog that if there is only one option in a a list collector variable we want the system to automatically pick that option and hide the variable on the form.

 

I have not been able to find a way to determine how many options are available without rerunning the query that was run to generate the reference qualifier. Is there a better way to get this info?  It seems like a lot of overhead for something that may already be readily available.

 

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

Yeah, this is specific to the native UI as that is the only one with an Available and Selected box.  I don't know of a way in Service Portal to determine how many results are returned from a reference qualifier without re-running the same query.

View solution in original post

5 REPLIES 5

Brad Bowman
Kilo Patron
Kilo Patron

Yeah, this is specific to the native UI as that is the only one with an Available and Selected box.  I don't know of a way in Service Portal to determine how many results are returned from a reference qualifier without re-running the same query.