15.08.2013 Views

Ektron CMS400.NET User Manual

Ektron CMS400.NET User Manual

Ektron CMS400.NET User Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Form Validation<br />

Working with HTML Forms<br />

You can apply validation rules to text or calendar field types.<br />

Validation rules ensure that the information entered by site visitors<br />

meets your criteria. For example, a validation rule specifies that a<br />

response to the Telephone field is 10 digits. If the response does<br />

not conform, an error message indicates the problem. The input<br />

must conform before the form can be submitted.<br />

For a list of validation rule types, see ”Validation Options” on<br />

page 596.<br />

When Validation Rules are Applied<br />

TIP!<br />

Form Fields<br />

Validation rules are applied when a site visitor submits an entire<br />

form, not when the input is entered. If an invalid response is found,<br />

the error message that you define appears.<br />

The site visitor must change his response to conform to the<br />

validation rule. When he does, the next field is checked and, if that<br />

is invalid, its error message appears, etc.<br />

If you apply validation rules to more than one field, include the field name in the<br />

error message. For example, enter The name field only allows text.<br />

This is good practice because error messages only appear after a form is<br />

submitted. If the message does not identify the field, the user may not know which<br />

field needs correction.<br />

You can insert the following types of fields onto an HTML form.<br />

• ”Inserting a Checkbox Field” on page 591<br />

• ”Inserting a Text Field” on page 592<br />

• ”Inserting a Choices Field” on page 605<br />

• ”Inserting a Calendar Field” on page 609<br />

See Also: ”Inserting or Editing Buttons on the Form” on page 612<br />

<strong>Ektron</strong> <strong>CMS400.NET</strong> <strong>User</strong> <strong>Manual</strong>, Version 7.5 590

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!