Actions

SaveTo Database Action

Save data to a Database table.

The SaveToDatabase Action stores each submission data as a new record in a local or external Database Table. Use it to store or log submissions.


Settings

SaveToDatabase Action Settings
SettingDescriptionRequired
DatabaseThe name of the database to which to connect.
TableThe name of the database Table to which to connect.
ContentThe mapping configuration of the submission data to the table columns.
Custom ConnectionShould the connection be manually inputed instead of inherited from the system.
Common Settings
ValidationDescription
Action NameThe name to reference this action.
StatusDefines if the action is enabled or disabled.
ExecutionA list of conditions that must be met in order for the action to be executed.

Connection

The connection to the Database is by default system inherited with the possibility for manual override.

SaveToDatabase Action Connection
SettingDescription
HostThe server host IP or address to which to connect, e.g. 127.0.0.1.
PortThe port to use for the connection, e.g. 3306.
Username / PasswordThe username & password which to use for the connection.

Update Record

When the Update Record setting is enabled the Submission Data will override an existing table record which will be determined by the association configuration. If no associated record is found, a new record will be appended instead.

SaveToDatabase Action Update
SettingDescriptionDynamicRequired
Update RecordShould a record be updated instead of appended.
Associative KeyThe table column key that will be used to associate the record.
Associative ValueThe table column value that will be used to associate the record.

An example to understand the association is to think of a Users Table with an ID column as its primary key. In such a scenario, the submission data should contain the user_id value representing the user row being updated, the Associative Key should be set as ID, and the Associative Value mapped to the Form Submission user_id.


Mapping

Once the table has been chosen, its columns will appear in the Content field ready to be mapped, being the column configuration pre-established by the table schema. The mapping will determine what value will be saved at what column of the record that is being saved or updated.

SaveTo Action Mapping

Not all columns require a value, in fact, mapping is disabled by default and must be enabled for each column independently. Once enabled, the value can be inputted manually or dynamically with the use of the Dynamic Workflow.

SettingDescriptionDynamic
ValueThe value that will be mapped to the column.

Integration

  1. Create a Form Area and access it Settings Panel.
  2. Add a SaveToDatabase action and fulfill the required settings.
Previous
SaveTo CSV