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: README.md
+34Lines changed: 34 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,16 @@ Currently, the following ENV variables are supported:
96
96
| EXTRA_USER_FIELDS_GENDERS | Options for the gender field (you need to add the corresponding I18n keys, ie: `decidim.extra_user_fields.genders.prefer_not_to_say` ) |`female male other prefer_not_to_say`|
97
97
| EXTRA_USER_FIELDS_AGE_RANGES | Options for the age range field (you need to add the corresponding I18n keys, e.g., `decidim.extra_user_fields.age_ranges.up_to_16`) |`up_to_16 17_to_30 31_to_60 61_or_more prefer_not_to_say`|
98
98
99
+
## Custom fields
100
+
101
+
If your use case include fields not defined in this module, it is possible to define custom fields of different types:
102
+
103
+
1.**Select fields** This configuration option allows you to define any number of extra user fields of the type "Select".
104
+
105
+
106
+
See the next section "Configuration through an initializer" for more information.
107
+
108
+
99
109
### Configuration through an initializer
100
110
101
111
It is also possible to configure the module using the an initializer:
@@ -110,6 +120,30 @@ Decidim::ExtraUserFields.configure do |config|
0 commit comments