In Action: Creating an “I Agree” Checkbox

FacebookLinkedInStumbleUponTwitterShare

Virtual fields are DataPage elements that do not have underlying fields in the source table or view to store entered data.  You can use them for input that will not be saved, such as "I agree" checkboxes.  You can also use them to pass data to other DataPages using parameters.

Virtual fields can be used in Forms, Reports, and log-in forms configured with custom authentication.

Steps to create an "I agree" checkbox:

1. Add an HTML Block for the Terms and Conditions

Using the Insert button at the lower right hand corner of the DataPage Elements panel, select HTML block.  This block will give you an area to add Terms and Conditions text.  Add your text in the panel to the right.  You can use HTML tags for formatting.

2. Insert a Virtual field

To insert a Virtual field, click the Insert button again.  Select Virtual field. The Virtual field will appear in the list of DataPage elements.  Click on the Virtual field to select it.  Use the arrow buttons to move the Virtual field below the HTML block.

Using the Insert Button to add a Virtual Field

3. Format the Virtual field as a Checkbox

Select Checkbox from the Form element dropdown field.  Remove the label text and enter “I agree” in the Display Text.

Select the Checkbox Form Element

4. Check the Required Checkbox

Make sure the required checkbox is checked.  Add a value of 1 into the Value when checked field.  Configure the rest of the DataPage as normal.  Press Finish to save your DataPage.  Now if the end user attempts to submit the form without checking “I agree”, they will receive an error message.

Checkbox  Field Options

Example Terms of Use Text Included in an HTML Block

Contact Support

Leave a Reply

 
© 2011 Caspio, Inc. All rights reserved! Sitemap | Terms of Use | Privacy Statement Suffusion theme by Sayontan Sinha