Role-based Option for the Commerce Item Field

Print Friendly and PDF Follow

Adding a Role-based Option for the Commerce Item Fields

Institutions can associate a role with the Commerce Item Field and collect additional information, such as the Company Name and Description, from registrants who have purchased a specified quantity of items. 

To add roles to the Commerce Item Field:

  1. Click the Manage Category dropdown and Add New Field in the Build Form Mode.
    Note: Role can also be associated with the existing Commerce Field Items by editing the field.
  2. On the Add New field window, click the Commerce Field dropdown and select the Commerce Item Field option.
  3. The newly added option Associate a Role with this Field displays, select the option.
  4. Select the price options and enter a value. For example, select Single Price and enter a value $10.
  5. Click the Manage Field Role link.
    • A window opens where you can add the parameters.
  6. Enter the Role Display text,  add the operator (=, = or >,  or >), the value, and then click Save. For example Equal to 20 Quantity.

  7. Add New Step from the Manage Form dropdown and create the Fields based on the required information. For example Field 1: Company Name and Field 2 Company Description.
  8. On the added step settings,  under Step Audience, select Role, the Role Display Text of the Commerce Item Fields, and click Save.

Commerce Amount Field

To add roles to the Commerce Amount Field:

  1. Access the Build-form mode.
  2. Edit the field created in Step #1 by hovering over it and clicking the edit field icon.
  3. Add a new role to the field by selecting the option from the Add New Role dropdown, choose a condition and values (e.g., Equals, Yes), and save the role.
  4. Go to Manage Form and click Add Step and give it a name, which should take you to that step of the form.
  5. Go to Manage Category and add existing field and add any existing text field (e.g., Company Name).
  6. Edit step settings on Manage Category Step Settings, and select the role created in Step #3 for the step.
  7. Open the Donation campaign form in the front end for any member.
  8. Enter all required information on the form, and select the value "Yes" for the new instance field created in Step #1 (e.g., the schedule time checkbox should be selected and all the required fields should be entered).
  9. Click  the Save and Continue button, which should land the user on step 2 of the form since the condition of role in the instance field matches the value "Yes."
  10. Enter any value into the step field and hit the Save and Continue buttons. The user should land on the Billing page and be able to complete the transaction.


Click here to learn more about Creating Roles.