labd / wagtailstreamforms

What happened when a FormBuilder met a StreamField
http://wagtailstreamforms.readthedocs.io
MIT License
156 stars 80 forks source link

Update get_options method for multiple fields #197

Closed VdeJong closed 2 years ago

VdeJong commented 2 years ago

Update get_options method for CheckboxesField, RadioField, MultiSelectField and DropdownField

To create the choice options form the block_value, it gets the values from the block_value. Yet, sometimes this block_value is a list with dicts that contain the value. Now it checks if this is the case, and gets the value from there instead of just the value from the list.