
Ben's work in this area leads to him bringing some interesting requirements to the table, and gives him some unique experiences that are of value to a broader set of marketers. In today's post, he explores the use of validation rules to ensure that a visitor has checked a check-box on a form that indicates that they are of a certain age, or have read the terms and conditions. This is a useful technique for many marketing situations.
Do you require visitors to agree to particular terms and conditions before you can accept the data they are providing through a form? Do you require a checkbox to be checked before accepting a form submission? Well, you don't need to be an HTML or JavaScript expert to set this up in your Eloqua forms.

First, add the checkbox field to your form. From the Fields menu on the form, you can list the fields in your form, or add a new field. If this is a form hosted within Eloqua, you'll need to add the field, if it is hosted on your site you will have already captured the field.
For this example, we'll look at a Checkbox field type, but the same techniques can be used on any type of field.

You can set the rules to validate against, the fields to validate, and the error pages to display if the field is incorrect.
To set up validation, first select an Error Page that will be presented to submittors if the info they have provided DOES NOT meet the requirements you set. When you have done this, select the field to validate (the checkbox field you added to your form) and create a NEW validation rule.
You'll be looking for the value submitted by the checkbox field to be "on", so

Selecting this give you options below that you need to configure to define exactly what the form validation should be looking for. Go to the "Form Field Validation Parameters" area of the page to define that list of acceptable submissions. To do this you will be creating a new Data Value Set and saying, "Do not accept a form submission unless the value submitted in this checkbox is in this Data Value Set".

With that validation set (of just one value - "On") created, you'll return to the previous page. Make sure that you have the "Set to the default value..." option Un-Checked so that your form submission is not altered.
And you're done! With this technique you can quickly ensure that no forms are submitted unless the right checkboxes are checked.