Skip to content

How to add secondary attributes to referral fields


Anindita Basu    Feedback

When you use a referral field, the values of only the name field are displayed as options on the dropdown list. Sometimes, you might want to display more attributes alongside the name, for example, also display a phone number or a branch. To do so, you specify the additional attributes for the referral fields.

You can display upto two additional attributes.

How to

You can add secondary attributes to fields for both modules and users.

  1. Log in to the web app.
  2. On the left menu panel, click Customize > Module Settings. Click the pencil icon for the module that contains the original field.
  3. Click JSON View and locate the referralConfig object.
  4. In this object, create another object called displayConfig. (See How to create a JSON object.)
  5. In this displayConfig object, add the field codes for the additional attributes. Here's an example:

    {
     "secondaryAttribute": ["branchcode_7qr25n1p","phone"]
    }
    
  6. Click Save. Then, release the changes.

  1. Log in to the web app.
  2. On the left menu panel, click Customize > Global Settings.
  3. Scroll down to Advanced Settings and click JSON Configurations.
  4. Locate the userDisplayConfig object and, in this object, create another object called displayConfig. (See How to create a JSON object.)
  5. In this userDisplayConfig object, add the field codes for the additional attributes. Here's an example:

    {
     "secondaryAttribute": ["branchcode_7qr25n1p","phone"]
    }
    
  6. Click Save. Then, release the changes.

See also


Did this page help? No help at allYes, totally!
Back to top