Handlers are typically used to trigger an action related to form submissions, updates, or deletions.
Accessing Handlers
- From the Dashboard, click the Easy Forms tile
- Find the form to add or edit the handler(s) for by:
- Browse the list
- Search the form by title
- Once found, under the Operations column, click the drop-down arrow, then click Settings
- Click the Emails/Handlers sub-tab near the top of the screen
- Click the + Add Handler button, then select the handler to configure by clicking the Add Handler button under the operations column for the handler type:
- Action, triggers an action on a submission
- Debug, debug a webform submission
- Remote Post, Posts webform submissions to a URL
- Settings, Allows webform settings to be overridden based on submission data, source entity fields, and conditions
Action Handlers
General tab
-
General settings
- Title, name the handler
- Administrative notes, add any relevant administrative notes if applicable
-
Trigger
-
Execute, select the trigger type from:
- ...when draft is created
- ...when draft is updated
- ...when anonymous submission is converted to authenticated
- ...when submission is completed
- ... when submission is updated
-
Execute, select the trigger type from:
-
Actions
-
Change status, select from
- Flag/Star
- Unflag/Unstar
-
Change lock, select from
- Lock
-
Unlock
- Submissions can only be unlocked programmatically
- Append the below text to notes (plain text)
-
Display message
- Enter a message to display
-
Display message type, select from
- Status
- Error
- Warning
- Info
- Update the below submission data (YAML)
- Available element keys, expand the section to view the available element keys
-
Change status, select from
- Click Save when finished
Conditions tab
Click the Conditions tab to configure settings that allow you to control the appearance, state, or validation of pages or elements. For more information on adding conditions, see the article Advanced Features for Easy Forms.
Advanced tab
Click the Advanced tab, to configure additional settings associated with handler.
-
Advanced settings
- Enable the Action handler, when checked, will enable the action handler
-
Development settings
- Enable debugging, when checked, trigger actions will be displayed on screen for all users
- Click Save when finished
Debug Handlers
General tab
-
General settings
- Title, name the handler
- Administrative notes, add any relevant administrative notes if applicable
-
Debug settings
-
Data format, select from
- YAML
- JSON
- Include submission properties, when checked, all submission properties and values will be included in the displayed debug information
-
Data format, select from
- Click Save when finished
Conditions tab
Click the Conditions tab to configure settings that allow you to control the appearance, state, or validation of pages or elements. For more information on adding conditions, see the article Advanced Features for Easy Forms.
Advanced tab
Click the Advanced tab, to configure additional settings associated with handler.
-
Advanced settings
- Enable the Debug handler, when checked, will enable the debug handler
- Click Save when finished
Remote Post Handlers
General tab
-
General settings
- Title, name the handler
- Administrative notes, add any relevant administrative notes if applicable
-
Completed, data will be posted when a submission is completed
- Completed URL, enter the full URL to POST to when the submission is completed
-
Updated, data will be posted when a submission is updated
- Updated URL, enter the full URL to POST to when the submission is updated
-
Deleted, data will be posted when a submission is deleted
- Deleted URL, enter the full URL to POST to when the submission is deleted
-
Submission data, data will be posted when a submission is completed
- Check the box beside the data to post
- Click Save when finished
Conditions tab
Click the Conditions tab to configure settings that allow you to control the appearance, state, or validation of pages or elements. For more information on adding conditions, see the article Advanced Features for Easy Forms.
Advanced tab
Click the Advanced tab, to configure additional settings associated with handler.
-
Advanced settings
- Enable the Remote post handler, when checked, will enable the remote post handler
-
Additional settings
- Method, select POST to request the web server accept the data enclosed when a completed form is submitted
-
Post type, select from
-
x-www-form-urlencoded
- Use this option when unsure, as it is the default format for HTML webforms
- JSON
-
x-www-form-urlencoded
-
Cast posted element value and custom data, when checked posted element values will be cast to integers, floats, and booleans as needed
- Custom data can be cast by placing the desired type in parentheses before the value or token
- Custom data, enter the custom data that will be included in all remote post requests
- Custom options, enter custom request options that will be used by the Guzzle HTTP client
- Custom error response message, enter a message to be displayed when the response status code is not 2xx
- Add, select a numerical value and click the button to add more settings as needed
- Custom error response redirect URL, enter the URL or path to redirect when a remote fails
-
Development settings
- Enable debugging, when checked, posted submissions will be displayed on screen for all users
- Click Save when finished
Settings Handlers
General tab
-
General settings
- Title, name the handler
- Administrative notes, add any relevant administrative notes if applicable
-
Confirmation settings
- Confirmation title, enter a title display at the top of the page upon a successful submission
- Confirmation message, enter a message to be displayed upon a successful submission
-
Custom settings
- Custom settings (YAML), enter the setting name and value as YAML
- Available custom settings, expand the section to see the available settings
- Click Save when finished
Conditions tab
Click the Conditions tab to configure settings that allow you to control the appearance, state, or validation of pages or elements. For more information on adding conditions, see the article Advanced Features for Easy Forms.
Advanced tab
Click the Advanced tab, to configure additional settings associated with handler.
-
Advanced settings
- Enable the Settings handler, when checked, will enable the settings handler
-
Developer settings
- Enable debugging, when checked, settings will be displayed on screen for all users
- Click Save when finished