Skip to content

Privacy policy link in forms

In order to comply with legal requirements, it may be necessary to have users confirm that they have read the privacy policy in forms. 

For this purpose, the form can generate a special confirmation field with a link to the page containing the privacy policy

The link to this privacy policy can be set manually in the form or alternatively configured globally so that it is automatically displayed in all forms.

In order to be able to use these settings optimally, advanced technical understanding and knowledge of HTML and CSS are helpful.

To ensure that the link to the privacy policy page appears automatically in forms, the file property webform.privacy.link has to be set.

The link to the privacy policy page must be entered in the webform.privacy.link property. Once this has been done, a confirmation field with a link is automatically added to all forms below the selected directory (see example below).

If this property is set, for example, at the start directory of a site, it applies to all forms on the site. However, the property for the privacy policy link is usually set by the administration at the /sites/ folder so that a privacy policy is automatically configured for all sites.

The name of the field, “Privacy Policy”, and the linked sentence, “I hereby confirm...”, are predefined as long as no manual configuration is made in the form (see below).

The online form can not be displayed
Most likely, the form has not yet been edited or form input fields are not defined.

If you want to use a custom text or even a different link, you can configure this manually in the form editor using the special input field of type “Confirmation link”.

The input field has to be configured as follows:

Type: Confirmation link

Label: The text entered here will be displayed above the link.

Default value: In this field, you can enter the individual text for the displayed link.

The individual configuration in the form always overrides the automatic configuration from the file property (see above).

If you also want to specify the link destination in the form itself, proceed as follows:

Enter a colon after the text for the default value, followed directly by the link to the desired page on your website. This could look like this, for example:
I confirm the privacy policy.:/imprint/privacy-policy/

The online form can not be displayed
Most likely, the form has not yet been edited or form input fields are not defined.

You can also enter links to function detail pages for the link. This applies both to the file property and to the default value of the confirmation link field.

Note: Do NOT enter the leading opencms:// here, but directly the function call beginning with function@.

The function detail page function@Datenschutz is already stored in the templates for the privacy policy and can therefore always be used for the form.