Ektron provides sample forms to start with and then customize. Forms are saved to a database by default, but not emailed. To change either setting, use the Edit Properties screen.
You can create HTML forms only in a folder whose template uses a FormBlock or Poll server control. For example, ine the Ontrek sample site, the Company folder uses the template company.pb.aspx
.
You can modify this template as needed or create a form template and assign it to any folder through its Folder Properties screen. Because folders inherit properties from their parent folder by default, new folders created under a parent folder use the correct template. Of course, you can break inheritance and assign a custom template for any folder. Consult with your Ektron administrator about the folders in which you should create forms.
NOTE: You can also create a new edition of a form in another language by copying an existing form and translating it. For more information, see Translating Content into Another Language.
IMPORTANT: If your form/survey/poll uses either Redirect option, your Web developer must use a FormBlock server control to display this form on a Web page. The Web developer cannot use a Poll Server Control when redirecting to an action page.
Here is an example of form content that you can create.
Note that some fields are required, and some provide a drop-down list of choices. You can learn how to create such a form by following the directions below.
The final screen lets you arrange the form fields. Then, add a button that lets the user submit the data.
NOTE: The form can also contain explanatory text, lines, images, and so on. To lay out fields in columns, insert a table and place the fields within table cells.
Next, click Save and Submit or Publish (). After you complete and save the form, it may need to go through the approval process. When that is complete, add it to the site by assigning it to a page template.
A Checkbox field is one character wide and accepts one of 2 possible values: checked or unchecked. For example
To insert a checkbox field:
NOTE: You cannot enter spaces nor most special characters (!@#$%^&*()+=<>,.:;’"{}[]|‘~
) into this field. If you do, they are replaced by underscores.
Use a Choices field when you want a site visitor to select from a predetermined list. You can allow a site visitor to select only one or more than one choice. You can also determine the list’s items and appearance.
To insert a choices field:
NOTE: You cannot enter spaces nor most special characters (!@#$%^&*()+=<>,.:;’"{}[]|‘~) into this field. If you do, they are replaced by underscores.
First item is not a valid selection—You can use the first list item to prompt the user to make a selection instead of being a valid response. For example, the first item may say Select from the list. To do so, check this box. If you do, the site visitor must choose any selection except the first item. If the site visitor tries to file the screen without choosing a different item, this error message appears:First item is not a valid selection.
This option is only available if Appearance is set to Drop List.
music
to be collected when the data entry user selects this item and saves the page, enter music here.To insert a field that lets a site visitor select a date, use a Calendar Field. To do that:
NOTE: You cannot enter spaces nor most special characters (!@#$%^&*()+=<>,.:;’"{}[]|‘~) into this field. If you do, they are replaced by underscores.
NOTE: You can only enter double-byte characters if your Windows settings include that language. If you enter characters that are not in a language defined in your Windows settings, question marks (?) appear instead of the characters.
NOTE: You can only enter double-byte characters if your Windows settings include that language. If you enter characters that are not in a language defined in your Windows settings, question marks (?) appear instead of the characters.
NOTE: You can only enter double-byte characters if your Windows settings include that language. If you enter characters that are not in a language defined in your Windows settings, question marks (?) appear instead of the characters.
Use a text field when you want the user to enter a free text response, or to display text on the screen. There are many variations you can apply to such a field, such as
To insert a text field:
NOTE: If you are using FireFox, you cannot enter text into a text field while creating or editing the form. If you need to prefill a text field with text, use the field’s Default Value property.
NOTE: You cannot enter spaces nor most special characters (!@#$%^&*()+=<>,.:;’"{}[]|‘~) into this field. If you do, they are replaced by underscores.
NOTE: This setting cannot be applied if this is a Password field.
NOTE: You can only enter double-byte characters if your Windows settings include that language. If you enter characters that are not in a language defined in your Windows settings, question marks (?) appear instead of the characters.
NOTE: Your Web developer can customize validation options. For details, see Setting Validation Checks for Plain Text and Calculation Field Types. However, the file that maintains custom validation is different for HTML forms: it is siteroot/workarea/ContentDesigner/ValidateSpace.xml.
All of the following options are used with the text field. Only No validation and Cannot be blank are also used with the calendar field.
NOTE: Decimal numbers include whole numbers because the decimal point is implied. That is, 12 is 12.0000.
NOTE: Decimal numbers include whole numbers because the decimal point is implied. That is, 12 is 12.0000.
The Text and Calendar field dialog’s Validation tab features a validation area.
The validation feature can ensure the following aspects user input.
NOTE: Your Web developer can customize validation options. For details, see Setting Validation Checks for Plain Text and Calculation Field Types. However, the file that maintains custom validation is different for HTML forms: it is siteroot/workarea/ContentDesigner/ValidateSpace.xml.
Your system administrator determines if a user can save the invalid data.
When the Custom Validation option is selected from the Validation field, the Custom Validation screen area becomes active.
As an example of custom validation, assume that a field collects telephone numbers, and you want to make sure the user enters 10 digits. To accomplish this:
string-length(.) <= {X}
appears in the Condition field.string-length(.) = {X}.
{X}
with 10. Now, it looks like this: string-length(.) = 10.
must be 10 digits
. Click the Data Style tab to apply formatting to a field that accepts user input.
When you do, the following tab appears.
Use the tab to assign the following formatting attributes to a response field.
A form typically includes one or more buttons, which let a site visitor submit a completed form.
You can place 3 buttons on a form (circled below).
After you insert a button, you may want to enter or change its properties, such as its text, height, and width. To edit a button’s properties:
After a form is created, you can view its information in the Forms folder. To view a form:
NOTE: The content name is the same as the Form name.
To update additional form information that does not appear on the View Form screen, navigate to the form’s View Form screen and click Form Properties (). The Form Properties screen displays a subset of form information.
In the Mail Properties section of the Edit Form screen, you can select email addresses submitted on the form to be inserted into the To, From, and CC Mail Property fields. Instead of entering a static email address, it can be dynamically retrieved from the user’s form submission. For example, you want to retrieve the “from” field of an email from the information a user enters when completing the form. To do this, use the OR to addresses in field drop-down lists shown below. These lists contain fields that dynamically retrieve data from the submitted form.
Note that the To and CC fields can accept fields whose validation type is email address or email address list. On the other hand, the From field can only accept fields whose validation type is email address (that is, a single email address).
To set up email address retrieval:
When a user completes the form, the value entered in the field created in Step 1 is used for the email’s From address.
You can retrieve data from a submitted form directly to the form’s Subject and Preamble fields. (The subject is a standard mail field, and the preamble is text that appears at the beginning of the email.)
For example, the form may provide a list of your products. While the user is completing the form, the user selects a product that the user is interested in. The product then becomes the subject line of the email.
NOTE: Because a Textarea field can span multiple lines, it can only be used with the preamble. However, a plain text field can be used with both the subject and preamble.
To retrieve data dynamically from a form field into the email’s subject line or preamble: