OdooWiki OCA HUB

Website Form Require Legal

website_form_require_legal folder_open OCA/website open_in_new
Website License: LGPL-3

This module adds the possibility to require confirm legal terms at frontend forms.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets you add a mandatory "I agree to the terms and conditions" checkbox to any website form, so visitors cannot submit the form until they tick it.

This module extends the website form builder so you can require visitors to accept legal terms before sending a form.

  • In the website editor, when you select a form, a new option "Legal terms acceptance" appears next to the URL setting. Ticking it inserts a checkbox block with the text "Agree to terms and conditions" just above the submit button (or above the captcha if one is present).
  • The checkbox is marked as required, so the browser blocks submission while it is unticked.
  • The submit button starts disabled whenever the legal terms block is present on the page, and it only becomes clickable once the visitor ticks the checkbox. Unticking it disables the button again.
  • The inserted block uses the same label width as the other form fields, so it lines up visually with the rest of the form.

It works on the public website frontend and inside the website builder. No new menus, database models or reports are added; the change is limited to website forms and their submit button behaviour.

Depends on

html_editorwebsite

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 5 confirmed, 4 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 19.0

To use this module, you need to:

  • Edit any page in your website.
  • Add a form from the snippets.
  • Modify the parameters.
  • You will find the option "Legal terms acceptance".
  • If you select it you will be able to modify the text shown and the link to the page from the text editor.

Note: Remember to change the terms and conditions link to redirect to the desired page.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.