Form step element Submit button element Reset button element Text element Text area element Multiple or single choice element Number element Date time element Range element URL element Selection element Image choice element File upload element Hidden predefined element Hidden visitor profiling element Catcha element Rich text element reCAPTCHA element

Episerver imageForm element types

Episerver provides default form element types that you can modify. The Forms gadget lists Basic and Action elements. You can build your own reusable form element instances from each type. For example, drag a Text form element type onto a page and edit the instance to create a username text box, or an email address text box with required validation. See also: Configuring a form element.

Basic Elements Action Elements
Episerver image Episerver image

The following Basic Element types are predefined in Episerver Forms:

The following Action Element types are predefined in Episerver Forms:

Settings tab

The Settings tab is used for editing the Created and Published dates of the form elements. The Submit button and Form step types have a couple of extra settings on this tab, see their respective sections above.

Dependencies tab

The Dependencies tab is used for the following form elements: Image choice, Number, Range, Selection, Text area, Text, Url, File upload, and Multiple or single choice.

The settings in the Dependencies tab are used when you want to either show or hide the current form element depending on how the visitor has made a selection in another form element. For example, you can set up a form question "How do you rate our services from 1 to 5?", and if the visitor gives a rating of 1 or 2, a follow-up question is displayed.

To achieve this, you set up one or more conditions, and if the specified conditions are met, the current form element is displayed (or hidden) to the visitor. See Example: Creating a customer satisfaction survey for an example on how to create form fields that are dependent on other fields.

Image: Dependencies tab

Property Description
This field will be With the drop-down menu under This field will be, you can choose to either show or hide the form element. If you select Shown, the current form element is displayed when the set conditions are met, and reversely, if you select Hidden, the form element is not displayed when the conditions are met.
if With the drop-down under if, you select if the form element should be shown or hidden when all or any of the specified conditions are met.
of the following conditions are satisfied: This is where you specify which form field the current one is dependent on, and the conditions that must be met in order to display or hide the form element. You can specify a number of conditions.
  1. Click the New condition button (+) to open the Condition Details dialog box:
    Image: Conditions Details dialog box
  2. Under Field, click the Browse button and select the form element that the current form element should depend on.
  3. Under Condition, select one of the following conditions:
    • Match with regular expression
    • Equals
    • Not equals
    • Contains
    • Not contains
  4. Under Value, define the value the condition should apply to.

Example of how to display a form field if a visitor has rated a service as 1 or 2 on a scale to 5:
This field will be Shown if Any of the following conditions are satisfied: Service rating Equals 1 and Service rating Equals 2.

When a form element is conditionalized, it is marked with a thin blue dotted border in the on-page edit view:

Image: Conditionalized form element