File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -158,17 +158,19 @@ Decidim::ExtraUserFields.configure do |config|
158
158
[:ngo , :newsletter ]
159
159
end
160
160
161
- # If extra text fields are needed, they can be added as an Array here.
161
+ # If extra text fields are needed, they can be added as a Hash here (key is the field, value whether mandatory or not) .
162
162
# For the user interface, you can define labels and descriptions for the fields (optionally):
163
163
# decidim.extra_user_fields.text_fields.field_name.label
164
164
# decidim.extra_user_fields.text_fields.field_name.description
165
165
# For the admin interface, you can define labels and descriptions for the fields (optionally):
166
166
# decidim.extra_user_fields.admin.extra_user_fields.text_fields.field_name.label
167
167
# decidim.extra_user_fields.admin.extra_user_fields.text_fields.field_name.description
168
168
config_accessor :text_fields do
169
- [:hobbies , :favorite_quote ]
169
+ {
170
+ hobbies: false ,
171
+ favorite_quote: true
172
+ }
170
173
end
171
-
172
174
end
173
175
```
174
176
You can’t perform that action at this time.
0 commit comments