Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Add a dropdown fields to an app to link data. To recap on the steps in the video:

Creating Drop down fields

  1. In the stream Businessesstream Businesses, create a new view called DDcalled DD_Businesses

    1. Tip

      The DD_ prefix is used here as

      a reminder to the developer

      an indication that this view is used for a dropdown.


  2. Ensure the new view has the UID and Name fields only.
    1. Hide the UID.
  3. Bring the contactsdashboard  Dashboard back to the front
  4. Drag the new DD_Businessesview  View (icon) onto the BusinessName field on the edit form
    1. This dynamically creates a Drop Down field
  5. Setup the dropdown by opening the configuration form for the stream attribute BusinessName
    1. Set Drop Down Value Field to Name
    2. Under Mappings click + to add a new mapping:
      • Set Form Field to the name of the attribute we want to map to on our form i.e. BusinessUID
      • Set Drop Down Field to the name of the attribute on the view that we will map to the form value i.e. UID

Link the Contacts on the Business Dashboard

  1. Open the configuration form for the Business Contacts view on the Businesses dashboard.
  2. Next to the Default Sort Order click +
    1. Name: ByName
    2. Sort Order Attributes, use FamilyName
  3. Next to the Default Filter click +
    1. Name: ByBusiness
    2. Filter Details
      • BusinessUID equals Businesses.UID
      • Click abc to let PhixFlow know this is a formulaan expression.
  4. Now the Businesses will Businesses view will drive the content of the Contact Details i.e we will see the contacts relevant to the selected business.


Tip

Drop Down fields are useful when we want predefined values to be used for an attribute. Another good candidate for a dropdown field is Type on the Businesses dashboard. Update all your contacts with a business from the dropdown list.