You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/docs/v1/tech/guides/advanced-registration-forms.adoc
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ Advanced registration forms let you build multi-step custom registration and adm
18
18
* <<Editing User Data In the Admin UI>>
19
19
* <<Using the API to Manage Forms>>
20
20
* <<Consents>>
21
+
* <<Email Localization>>
21
22
* <<Form Fields and Validation>>
22
23
* <<Special Considerations>>
23
24
@@ -627,6 +628,20 @@ The consent field will have a name automatically generated based on the consent
627
628
consents['dd35541d-e725-4487-adba-5edbd3680fb8']=I consent to sharing my data with affiliated companies
628
629
```
629
630
631
+
== Email Localization
632
+
633
+
Emails are localized based on the user preferred language attributes. link:/docs/v1/tech/core-concepts/localization-and-internationalization[Learn more here about the different ways FusionAuth localizes content].
634
+
635
+
Using advanced registration forms, you can set this attribute on registration. FusionAuth will then localize any initial emails, such as a password setup or email verification email.
636
+
637
+
To do so, add a custom field to your form setting the [field]#user.preferredLanguages# field. You can use the default one that ships with FusionAuth, as below.
638
+
639
+
image::guides/advanced-registration-forms/setup-locale-selection.png[Add locale choice to registration form.,width=1200]
640
+
641
+
This will build a select box with a list of all supported locales. If you'd prefer to limit it to a certain subset, copy the default field and edit the allowed values.
642
+
643
+
You may also add this as a hidden field and set it via JavaScript if you'd rather not display the dropdown.
644
+
630
645
== Form Fields and Validation
631
646
632
647
Making sure user registration data meets your quality requirements is important. FusionAuth provides multiple ways to validate user input during the registration process.
@@ -706,6 +721,7 @@ Assume you've enabled the Facebook identity provider and allowed for registratio
706
721
707
722
After a user signs up with Facebook, they'll be dropped back into the registration flow on the second step. They'll be required to complete the registration from from the second step onward before they are fully registered.
0 commit comments