There may be times when you need to update a field in another table in order to satisfy your business requirements.
Before you begin, be sure that you have created the destination table and tested it by adding at least one record.
- On the Trigger Actions panel, click "Add New Trigger Action". Depending on your starting point, you may need to select a profile, click "Edit Trigger Profile", and then click the Actions tab. The New Trigger Action panel appears.
- Click "Update in Alternate Table Action" and click Next.
- Note the description of this trigger and click Next. The "Alternate Table Update Trigger Action Wizard" panel appears.
- In the Action Name field, enter a descriptive name for this action.
- If you want to stop all other trigger actions after this profile runs -- if this is the last action you plan to run -- check Stop After.
- Click Edit Rule and use the standard Logiforms Rules screen to select one or more fields and define the settings that determine when this action will be run.
- Click Next. The "Destination Table & Query" panel appears.
- In the Update Table field, click and choose the name of the form you want to update from the dropdown list.
- Click Edit Lookup and use the standard Logiforms Rules screen to select one or more fields and define the settings that determine when this action will be run..
- Click "Set Update Values". The Update Fields & Values screen appears.
- Click New. The Settings screen appears.
- In the Update Field dropdown list, choose the field you want to update.
- In the Update Mode field, you have four choices for how to update this field. Depending on the one you choose, your options change as follows:
Mode Details Static a Value field displays; enter the text you want used to update the defined field in the destination table Use Form Field Value a dropdown list named Value field displays fields from your source form; choose a field from the list Calculated Value click Calculation; in the Calculated Update Value box, enter your expression; you can use wildcards from either the source or the destionation table; click Save Sum four fields appear. in "Sum Value Source" click and select the form that provides the source for the sum; in "Sum Source" field, choose a field from that form; in Sum Mode, choose whether you want to Add, Multiple, or Join Strings Values; in "Sum Value Lookup Rule" click "Edit Sum Rule" and use the standard Logiforms Rule screen to select one or more fields and define their settings.
- Click Save. You are returned to the "Update Fields & Values" panel. It displays the field name you have defined to be updated.
- Click Save to return to the Destination Table & Query panel.
Click Finish to return to the Trigger Actions panel.
Click Finish to return to the Trigger Profiles panel or click "Add New Trigger Action" to add another action to this profile.
If you need to edit or delete a trigger action or profile, see Managing Triggers.