Using forms and Universal Email
One method for defining the properties of an email is retrieving information from form elements on the page to which the Universal Email server behavior is applied.
Values for properties can be retrieved from any form element for which a value can be set.
Form elements which allow multiple selections (radio groups, menus, lists) allow you to use the value for a specified selection.
The following information details email properties that can be defined using form elements and how you might want to use them. For more information on implementing this see the Universal Email Quick Insert page.
- Redirect after Send:
A radio button value can be used to set the path for the redirect location. This may be useful in situations where the redirect location may vary depending on a radio button selection.
- Subject:
The subject line of an email can be retrieved from a textfield, using a pre-defined value or the value entered by the user when its parent form is submitted. Other options include using a hidden value set from other form elements (radio button selections, hidden form elements, etc.)
- Importance:
The priority of the email can be defined by a value of a selected radio button, a textfield or hidden form element.
- From:
The sender of the email can be retrieved from a value entered by a client in a text field, from a list of available recipients, a radio or checkbox selection, or a hidden form element.
- To:
The recipient(s) of the email can be retrieved from a value entered by a client in a text field, from a list of available recipients, a radio or checkbox selection, or a hidden form element.
- CC:
The recipient(s) of the email can be retrieved from a value entered by a client in a text field, from a list of available recipients, a radio or checkbox selection, or a hidden form element.
- BCC:
The recipient(s) of the email can be retrieved from a value entered by a client in a text field, from a list of available recipients, a radio or checkbox selection, or a hidden form element.
- Attachments:
Attachment location and file names can be retrieved from a value entered by a client in a text or file field, from a list of files, a radio or checkbox selection, or a hidden form element.
- Body:
The content of the email can be retrieved from a value entered by a client in a text field, from a list of available recipients, a radio or checkbox selection, or a hidden form element.
To set the value of a form element:
- Select a form element on the page.
- Within the Properties inspector, enter the information to be retrieved in the appropriate value field.
- For text and text area form elements this is the Init Val.
- For checkboxes and radio buttons, this is the Checked Value.
- For hidden form elements, this is the Value.
- For menus and lists, use the List Options dialog, accessible through the List Options button, to specify appropriate values for each item available in the list.
Note: Form elements should be specified using unique names in order to distinguish them when information is retrieved from them.
To retrieve the value from a form element:
- Open the page which contains the form.
- Access the Universal Email Quick Insert.
- Select the email property you need to define.
- For the property to be defined, select the data bindings icon (lightning bolt). The data bindings interface will open.
- Expand the form listed and select the appropriate form element to retrieve the value from.
- Click OK. The necessary code populates the Universal Email dialog to retrieve the value from the selected form element.
|