Skip to content

Commit 6bf4093

Browse files
committed
readme
1 parent 15b8d28 commit 6bf4093

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,17 +158,19 @@ Decidim::ExtraUserFields.configure do |config|
158158
[:ngo, :newsletter]
159159
end
160160

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).
162162
# For the user interface, you can define labels and descriptions for the fields (optionally):
163163
# decidim.extra_user_fields.text_fields.field_name.label
164164
# decidim.extra_user_fields.text_fields.field_name.description
165165
# For the admin interface, you can define labels and descriptions for the fields (optionally):
166166
# decidim.extra_user_fields.admin.extra_user_fields.text_fields.field_name.label
167167
# decidim.extra_user_fields.admin.extra_user_fields.text_fields.field_name.description
168168
config_accessor :text_fields do
169-
[:hobbies, :favorite_quote]
169+
{
170+
hobbies: false,
171+
favorite_quote: true
172+
}
170173
end
171-
172174
end
173175
```
174176

0 commit comments

Comments
 (0)