How do I modify drop down list for a widget?

gjz
Mega Sage

We allow our users to submit requests on behalf of someone else.  However, I need to add additional information to the Request for list so the person submitting can different from an active vs. inactive user and someone who has a duplicate name.

 

Where and how can I change the data in the list?  For example, in the screenshot below, it shows that the user is active.  How would I add the user's department?

 

This is the widget Catalog Checkout (sc-checkout).

 

gjz_0-1743608962584.png

 

1 ACCEPTED SOLUTION

gjz
Mega Sage

For those who may see this, I stumbled on the answer.  You can change the columns displayed in the drop down list by changing the value in the system property glide.sc.request_for.columns

View solution in original post

4 REPLIES 4

jMarshal
Mega Sage
Mega Sage

@gjz - you can use the Type Specicifications on the Request for variable!

You can use the simple filter to set "active = true" (for instance) to only show the active users...or you can set the variable attributes for "ref_ac_columns=email;employee_number;active" to show in the drop-down, the added columns of the referenced table (sys_user in this case) this will show the associated value of each user's email/employee_number/active/etc (active will just show as "true/false" on the line -- which may be what you're displaying under their name in your shared image, even???)

jMarshal_0-1743611426082.png

jMarshal_1-1743611755874.png


Hope this helps! Mark as helpful and/or accept solution, if so pls! 😁

 

Thanks for responding, but it isn't the solution.  If you use a PDI that hasn't been modified at all and order something from the Employee Center portal, you will see there isn't a variable in the catalog item for Requested for, it's at the end with the Order Confirmation.  We follow the same process (although we have 2-step installed).  The catalog items never have a variable for Requested for, it is done at the end with the Catalog Checkout widget.  I'm trying to figure out where the widget gets it's drop down list so I can modify it.

 

I do appreciate your answering!


@gjz wrote:

Thanks for responding, but it isn't the solution.  If you use a PDI that hasn't been modified at all and order something from the Employee Center portal, you will see there isn't a variable in the catalog item for Requested for, it's at the end with the Order Confirmation.  We follow the same process (although we have 2-step installed).  The catalog items never have a variable for Requested for, it is done at the end with the Catalog Checkout widget.  I'm trying to figure out where the widget gets it's drop down list so I can modify it.

 

I do appreciate your answering!


No worries, glad you were able to solve the problem for your specific configuration needs (2-step)...I didn't notice that you're using a consolidated cart.

...but just for the benefit of others who may come across this post...

I assure you that "requested for" variable is an OOB field type that you can add to individual catalog items and configure it to not use any consolidated checkout (depends on the portal settings for your catalog item)...in which case, the requested for variable that you add to your item will be the one that uses the variable attributes and you can filter/adjust individually.

Poh-tay-toe/Poh-tah-toe, I suppose. I'll remember to come back to this, if we start using the consolidated cart or 2-step-checkout (not likely here, TBH) so I can use that sysProp that you indicated.

gjz
Mega Sage

For those who may see this, I stumbled on the answer.  You can change the columns displayed in the drop down list by changing the value in the system property glide.sc.request_for.columns