Skip to content

Form elements

You build a form from elements in the form editor. Via "Add content", you add the following elements to a layout:

Content elements in the groups Text, Question type, Organisational, Media and Other & design, from which you choose the element you need

You set the elements of the group "Question types" to "Mandatory" or "Optional". Participants fill in a mandatory element before they finish the form. An optional element may stay empty.

Many elements can be placed in an alert box in the "Style" tab. In the "Layout" tab, you set the distance to the other elements.


Title

With the element "Title", you structure the form with headings. You choose the size in the levels h1 to h6.

Drop-down Size in the Style tab of the inspector, with which you set the level of the heading

To the top of the page ^


Text

With the element "Text", you add information or questions to the form. A small editor formats the text and inserts links and bullet points.

Text element with the toolbar for formatting, next to it the inspector with Columns and the switch Alert box

To the top of the page ^


Table

With the element "Table", you present information clearly in rows and columns. In the inspector, you set among other things "Row", "Column", "Row header" and "Column header".

Table with caption, header row and three rows, next to it the inspector, in which you set Row, Column, Row header and Column header

To the top of the page ^


Rubric

With a rubric, people rate several criteria or statements on the same scale. The rows hold the criteria or statements, the columns the levels of the rating scale. In courses, the rubric serves, for example, coaches as a grading grid or participants for peer reviews in the course element "Task".

How you configure a rubric is described on the page The form element rubric.

Rubric with statements in the rows and a five-level rating scale in the columns, next to it the inspector with Type and Steps

To the top of the page ^


Single choice

In a single choice, participants select exactly one option from a list.

  • With the button "Add choice", you add further options.
  • With the arrows, you move an entry up or down.
  • Under "Presentation", you choose whether the options appear "Vertical", "Horizontal" or as a "Dropdown".

Tip

Write the question for the selection in a separate element "Text". The same applies to the multiple choice.

The single choice can be the condition of a question rule. Depending on the selected answer, the form then shows certain containers with their contents.

In the inspector, give the element a meaningful name under "Name" so that you find it again in the question rules.

Single choice with three entries, highlighted are the arrows for moving, the button Add choice and Name and Presentation in the inspector

To the top of the page ^


Multiple choice

In a multiple choice, participants select one or more options from a list.

  • With the button "Add choice", you add further options.
  • With the arrows, you move an entry up or down.
  • Under "Presentation", you choose whether the options appear "Vertical", "Horizontal" or as a "Dropdown".
  • With the option "Participant can insert other values", participants add their own answers.

The multiple choice can be the condition of a question rule. Depending on the selected answer, the form then shows certain containers with their contents.

In the inspector, give the element a meaningful name under "Name" so that you find it again in the question rules.

Multiple choice with four entries, highlighted are the arrows, the button Add choice and Name, Presentation and the option for other values in the inspector

To the top of the page ^


Text block

In the element "Text block", participants enter their own text in a free text field.

  • Under "Input type", you set whether participants enter "Text" or a number ("Numeric"). For a date, add the separate element Date / Time.
  • Under "Row type", you choose "Single row" or "Multiple rows".

Free text field of the element Text block, highlighted in the inspector are Input type with Text and Numeric and the Row type

To the top of the page ^


Date / Time

With the element "Date / Time", participants enter a date, optionally with a time, for example the start of an exam. They choose the date in the calendar of the field.

  • Under "Input type", you set whether participants enter only a "Date" or "Date / Time".
  • Under "Action", you tick "With fill-in action". A button then appears next to the field that enters the current date with one click, with "Date / Time" also the current time. You set the label of the button yourself, the default is "Set to now".
  • Under "Obligation", you choose "Mandatory" or "Optional".

To the top of the page ^


Upload file

With the element "Upload file", participants upload a file into the form.

  • Under "Maximum file size", you limit the size of the file.
  • Under "File type", you allow only certain file types, for example "PDF" or "Image".

Field for uploading a file, highlighted in the inspector are Maximum file size and File type

To the top of the page ^


Respondent details

With the element "Respondent details", you ask for details about the person who fills in the form, for example first name, last name or email. Under "Information", you tick the details you need. A form contains the element at most once.

Under "Obligation", you choose one of three variants:

  • Optional - can be left blank: Participants fill in the details voluntarily.
  • Mandatory - editable: Participants must fill in the details.
  • Mandatory - not editable: OpenOlat enters the details from the user profile, participants cannot change them.

Important

With this element, the form assigns the answers to the respondent. The form is therefore no longer anonymous.

Respondent details with the ticked fields First name, Last name and E-mail, in the inspector the three variants under Obligation

To the top of the page ^


Coach details

With the element "Coach details", you record in the form which coach is responsible, for example who supervised an exam. Under "Information", you tick the details the form asks for: first name, last name or email. A form can contain the element more than once, each one is filled in separately.

When filling in, the element shows the button "Apply coach details" above the fields. It lists the coaches of the course. The person who fills in the form selects a coach there, and OpenOlat enters the coach's details from the user profile. The element shows the button in forms that a course uses, for example in the course element "Form" or "Survey".

In the inspector, tab "General", you choose under "Available coaches" whom the button offers: "Coaches" or "Coaches and owners" of the course.

Under "Obligation", you choose one of three variants:

  • Optional - can be left blank: The details may stay empty.
  • Mandatory - editable: All ticked details must be filled in, by hand or via the button.
  • Mandatory - not editable: The details come only via the button. They cannot be changed by hand.

Important

The variant "Mandatory - not editable" needs a course with coaches. If OpenOlat finds none, the element shows the message "There are no coaches available." and the form cannot be finished.

To the top of the page ^


Terms of use

With the element "Terms of use", you add a letter of agreement with a checkbox to the form. Participants tick it before they finish the form. They can save the form in between before that.

Terms of use element with the text of the letter of agreement and the label that appears next to the checkbox

To the top of the page ^


Image

With the element "Image", you show an image in the form. If you select the element "Image" under "Add content", OpenOlat first asks you to upload an image file. Then the form editor shows the image with the inspector.

Image element with the uploaded image, next to it the inspector with the tabs Style, Title, Display and Layout, in which you set Alignment, Image size and Style

In the inspector, you set how the image appears:

Tab "Style"

  • Alignment: position of the image in the layout area
  • Image size: scaling of the image
  • Style: display, for example with a frame or shadow
  • Alert box: display in an alert box

Tab "Title"

  • Title: title of the image
  • Title position: position of the title, for example above the image or on the image in the middle
  • Title style: "Bright" for dark images, "Dark" for bright images

Tab "Display"

  • Description: text about the image, which participants open via a small question mark symbol
  • Caption: text in a smaller font below the image

Tab "Layout"

  • Spacing: distance of the image to the other elements

To the top of the page ^


Separator

The separator is a fine dividing line that structures your form into areas.

Separator as a fine dividing line between two text elements, with which you structure the form into areas

To the top of the page ^


Container

A container holds the elements of the form in columns and rows. In the form editor, it is called "Layout": every element sits in a container, and a new form already contains one with one column. You do not add a further container via "Add content" but with the button "Add a new layout".

In the inspector of the container, you set:

  • Layout: the layout template, that is the division into columns and rows
  • Name: the name by which you select the container in the question rules
  • Style: an alert box around the whole container

With a question rule, a container appears only once participants have selected a certain answer in a single or multiple choice. The form editor marks such a container with "Controlled by rule".

How you insert, change and delete containers is described on the page The form editor.

To the top of the page ^


Alert box

With the alert box, you highlight an element, for example an important text or a rubric. The alert box is not an element of its own but a setting in the "Style" tab of many elements such as text, table, image, rubric and terms of use.

Text element in an alert box with title and icon, highlighted in the inspector are Alert box, Type, Title, With icon and Collapsible

If the switch "Alert box" is switched on, you set the following settings.

Type

The type determines which pre-formatted box appears or whether you design the box yourself. The options are:

  • Note
  • Info
  • Tip
  • Important
  • Warning
  • Error
  • Success
  • Custom: you choose an icon and the background color of the box yourself.

Title

The title appears in the header of the alert box.

With icon

If the option is switched on, the alert box shows an icon at the top left, for example an "i" for the type "Info".

Collapsible

If the option is switched on, participants collapse the box with the symbol at the top right. Then only the title bar is visible. Another click on the symbol opens the box again.


Further information

How do I create a form learning resource?
The form editor
The form element rubric
Question rules in forms

To the top of the page ^