Form configuration

For each form where validation is required the EDQ Form Manager library must be loaded and the EDQ field controls must be configured on the required address, email and phone form fields.

Configuring the form library

The edq_formmanager web resource will need to be added to the form by following these steps:

  1. Select Tables from the left hand menu of the main Power Apps interface.

  2. Click the Table you want to configure.

  3. Click Forms from the Data experiences panel at the top of table page.

  4. Click the Form you want to configure (e.g. Account).

  5. Click Form libraries in the command bar.

  6. Click the + Add library button in the Form libraries panel that appears on the left.

  7. Search for and add the EDQ form manager (edq_formmanager) library by selecting it and clicking the Add button.

    Add JavaScript Library

  8. Select the Events tab in the panel on the right, expand On Load and click the + Event Handler button.

    On Load Event Handler

  9. For Library select the previously added edq_formmanager and in the textbox labelled Function type in edq_onLoadHandler. Be sure that both checkboxes labelled Enabled and Pass execution context as first parameter are selected.

  10. Click Done to close the Configure Event panel.

Configuring the field controls

On each form, the address, email and phone fields should be configured with the appropriate EDQ control to enable validation. With the form window still open follow these steps:

  1. Select the first address field you would like to be validated, typically Address 1: Street 1 by default.
  2. Select the Properties tab in the panel on the right, scroll down to Components and click the + Component button.
  3. Search for and select EDQAddress.
  4. Enter the mapping name in the Static value text box. This would be Address1 or Address2 if you're following the quick setup instructions and using the mappings that come pre-configured with the solution.
  5. Select where you want the control to be shown - Web, Mobile and/or Tablet.
  6. Click Done to close the component configuration panel.
  7. Repeat these steps for other address fields as required.

Field properties for an address field

  1. Select the email field you would like to be validated.
  2. Select the Properties tab in the panel on the right, scroll down to Components and click the + Component button.
  3. Search for and select EDQEmail.
  4. Configuration of the Validation message, Validation timestamp and Mapping name are all optional. Their configuration is detailed later when setting up an email mapping.
  5. Select where you want the control to be shown - Web, Mobile and/or Tablet.
  6. Click Done to close the component configuration panel.
  7. Repeat these steps for other email fields as required.

Field properties for an email field

  1. Select the phone field you would like to be validated.
  2. Select the Properties tab in the panel on the right, scroll down to Components and click the + Component button.
  3. Search for and select EDQPhone.
  4. Configuration of the Country code field, Validation message, Validation timestamp and Mapping name are all optional. Their configuration is detailed later when setting up a phone mapping.
  5. Select where you want the control to be shown - Web, Mobile and/or Tablet.
  6. Click Done to close the component configuration panel.
  7. Repeat these steps for other phone fields as required.

Field properties for a phone field

Save and publish the form

  1. Click Save and publish in the command bar to commit your form changes.
  2. Navigate back and then repeat the steps on this page for other forms as required.

Quick setup complete

You have now completed the quick setup steps to enable basic address, email and/or phone validation on your forms. If you want to take things further the next sections detail the additional data you can configure, creating new fields to store validation status and timestamp as well as the additional data, mapping the data to fields on your forms, plus other advanced configuration options.