Populate Requested For from the Variable

uzzawal
Tera Contributor

Hello Experts,

I have a requirement to populate the "Requested for" field on the shopping cart page from the catalog item "Requester" Variable.

OOB Requested For populates the value of login user but on checkout page I want to populate this value from the requester variable of the catalog item.

In the attached screenshot I am requesting for a catalog Item "Document Creation" which has a variable Requester and value is XYZ, so I want to populate same value in the Requested For field on this shopping cart page.

Any Suggestions ?

Regards,

Uzzawal

10 REPLIES 10

Harsh Vardhan
Giga Patron

Thanks for your response but we our requirement is different we want to populate the requested for on shopping cart page even before submitting the catalog item.


ok. you need to write after business rule on sc_cat_item table that will copy the variable value there and by using



Service Catalog > Catalog Policy > Properties.



  1. Locate the property Field name to use for the description column of the checkout form. If blank, the default (short_description) is used.
  2. Enter the name of the alternative field (a column in the Catalog Item [sc_cat_item] table) and save it. For example, if you selected name:

i don't think so it's a good practice.


if you see in this property if you will mention any field of sc_cat_item that will appear or catalog status page. if you want you can try.