Using forms

Web forms is a popular and frequently used feature on websites for creating, for example, questionnaires or registration forms for events. The built-in forms functionality in Episerver CMS is available through a form property, which is added to a page template or a block during implementation. On the Episerver sample site, for example, the forms functionality is made available through a Form block.

You also can create block-based forms; see Episerver forms [BETA].

Locate the Forms property (its location depends on your system configuration), and click the button to access the Select Form dialog, the "entrance" to forms management.

Managing forms

Forms are administered in the Select Form dialog, from where you can view all forms on the website, organize them in folders and use them in content. Forms can be placed in a selected folder when you edit or create them. Form folders can be deleted, note that you can only delete empty folders.

  • Click Edit to edit an existing form, this can be saved with a new name to keep the original.
  • Click Delete delete a form, forms can also be deleted from within the Edit Form dialog.
  • Click Select to select a form, and then Use to use the selected form in content.
  • Click No Form to remove a link to a form that is currently used in content.

Creating a form

Start by creating the layout, then add the desired form fields. Complete the form by providing a name and defining the usage, then save it to become available for linking into content.

Viewing and exporting form data

If you chose to save the form data in the database as a posting result, the aggregated form data can be retrieved for viewing and exporting. Open the content (page or block) where you have linked to the form in the All Properties editing view, and locate the Forms property. Select the View data option to access the form data.

Forms data displayed will be aggregated from all instances (page or block) where the form is used, if needed select a date interval to filter the data and click Search.

Before exporting, you can clean up the data by deleting any incorrect postings. Select the postings to export (click Select all to include all), and select the desired format to export to:

  • Export to Excel exports the data to a Microsoft Excel file.
  • Export to XML exports the data to an XML file.

Exporting forms

Forms can be exported between Episerver CMS websites. When exporting a form, an XML file will be created, which is then imported to the other website. Select a form to edit, go to the Import/Export tab, and click Import or Export.

back to top

Episerver User Guide update 15-5 | Released: 2015-11-16 | Copyright © Episerver AB | Send feedback to us