Form Connector – MySQL

Form Connector – MySQL

After adding and authenticating a MySQL Connection, you can add Data Source Connectors to pull data from a database or push data on form submissions using Form Connectors, which is what this article is about.

Our platform lets you quickly and easily connect your Form entries to a MySQL database, enabling one-way synchronization – Form entries are pushed to tables in a MySQL database.

Adding the Connector

Follow these steps to add the connector to your specific form:

  1. Navigate to App Workshop > Forms.
  2. Hover over your desired form and click the Connect icon.
  3. Click the Add Connector button (top-right).
  4. Select MySQL from the options.

Note: The page will refresh with the connector added. Changes are not live until you click Save.

Quick Access Tip

If you are already inside the Form Builder or Settings view, you don’t need to go back to the main menu. Simply click the Connectors tab located directly under the form title at the top of the screen.

Configuring the Connector

After adding the form connector, configure it. Enter an optional schema and specify form fields to populate an existing or new table. If you require this connector to trigger only on form-captured data, why not add a run condition? 

Data Columns

Specify which Form fields to populate as row values in your target dataset.

Upon your first Form entry, each selected Form field will auto-create a column of the same name if it does not already exist.

Table Name

Specify the database table that will receive entry data for this Form.

If left blank, a default table name will be generated using the Form External ID.

Auto Maintain Table

When enabled, our platform will create and maintain the target database table, and automatically add _lastupdated and _deleted columns.

This is a recommended setting, as columns will be automatically added/altered as the Form design changes between versions.

When not enabled, you’ll be able to enter your own Custom SQL to maintain table columns.

Exclude from Export

Any fields that are marked as ‘Exclude from Export’ in the Form Designer will also be excluded from the target table.

Use URL Media Fields

If enabled, media file names will be converted to their full URLs.

Replace Placeholders with Display Text

By default, placeholders will be replaced with the raw answer value from the form entry.

For example, date values are stored as UTC in ISO 8601 raw format, e.g., 2015-10-23T15:05:07Z.

Select this option if you wish to replace it with user-displayed text instead, e.g., 23-Oct-2015 05:05:07, assuming your time zone is UTC-10.

Fill Repeat Rows

Repeated data (e.g., repeatable pages and table rows) will be exported as separate rows.

When this option is selected, all non-repeat answer values are copied into each repeat row.

This can be useful for cases where other systems are importing these rows, and those systems need to process all answer values on every repeated row.

If you wish to have NULL values for non-repeat answers in repeat rows instead, deselect this option.

The following are NOT affected by this option: 

  • ENTRYGUIDENTRYGUIDFULLITEMNO, and UTCNOW
  • Fields that appear within a table or repeating page
  • Formulae that reference a repeating field

Anonymize Personal Data

If enabled, data from fields marked as Personal Data will be converted to a non-human-readable format to aid privacy.

At this stage, your Connector is ready to go. Hit the SAVE button to save your changes and activate the Connector.

Connector Logs

After devices are synced and a user uploads a form, form-captured data should be pushed to your ArcGIS Online database, which can be confirmed in the external system or by viewing the form’s connector logs on the platform’s Data Feed views.

    • Related Articles

    • Data Source Connector – MySQL

      After adding and authenticating a MySQL Connection, you can add Form Connectors to push data to a database or pull data from a database using Data Source Connectors, which this article is about. Our platform lets you quickly and easily connect Data ...
    • Connecting to MySQL

      Authenticating a connection to MySQL enables communication between the two platforms. This must be successfully added before Form Connectors can push or Data Source Connectors can pull data. Adding The Data Hub area of the platform is where you can ...
    • SQL Form Connectors – Custom SQL

      There are two ways to control the flow of data to your SQL tables using one of our SQL form connectors (SQL Server, MySQL, or PostgreSQL): “Auto Maintain” and “Custom SQL“. In this article, we’ll look at “Custom SQL” and how you can use it in your ...
    • Form Connector – ArcGIS

      After adding and authenticating an ArcGIS Connection, you can easily send form entry data to the ArcGIS API by configuring the ArcGIS form connector, as shown in this article. Adding the Connector Follow these steps to add the connector to your ...
    • Form Connector – Twilio

      A Twilio Form Connector helps you send and manage short messages programmatically. Our platform lets you quickly and easily send text messages when a Form entry is uploaded and/or a Task Connector’s triggering condition occurs. Set Up Twilio ...