Catalog item variable shows as undefined in Service Portal My Requested Item

ann4
Giga Contributor

Good day everyone.

I have a catalog item where I added a variable of type Select Box.

The values are determined via the catalog client script.  But basically I am setting the values for it using the following:

g_form.addOption('u_preapproved_roles', roles[ii],roles[ii],iii);

When viewed on the Service Portal, everything works,user can see the values on the drop down field.

But after submitting the request, it shows undefined when the user reviews the request in Service Portal.

I have attached a document showing some sample screen shot.

Would appreciate any thoughts/ideas on how I can fix it so that it doesn't show as undefined when reviewed by the requester on the service portal.

Thanks and regards,

Ann

1 REPLY 1

ann4
Giga Contributor

I replaced the variable type with Lookup Select Box and it is now working.