locale variable to conditionally render form inputs and define validation behavior.
The following use case works with the locale variable to render a Terms of Service message and checkbox. Any variable exposed to Page Templates can be substituted.
Prerequisites
- Tenant has a verified Custom Domain
- Tenant has a Page Template set
Enable fr and es locales
Go to your , then navigate to Settings > General and enable the locales:
Conditionally render Custom Fields
Use to add a template partial to theform-content-end signup prompt Prompt container. In the case where the locale is es or fr, you may want to render a Terms of Service message and a checkbox.
fr or es:



&screen_hint=signup&ui_locales=fr (or es).
Add validation
When the locale isfr, you can validate that the checkbox is checked before continuing. Update the template partial using the following validation code:
fr locale are required to consent to the ToS.

The validations in this use case happen client-side and are intended to be a user convenience. They are not guaranteed to run; for example, the user’s browser may have Javascript turned off. In addition, validations can be modified by curious or malicious actors. To ensure the integrity of validation logic, client-side validations should be paired with server-side validations.