Closed svale closed 1 week ago
Actually, I had missed the part in the docs about Populating Forms and craft.formie.populateFormValues()
....
Fixed for the next release. To get this early, run composer require verbb/formie:"dev-craft-5 as 3.0.0-beta.14"
.
Fixed in 3.0.0-beta.15
Describe the bug
I have an issue where I have a form with a set of check boxes and a group of radio buttons and both should be rendered with a default option pre-selected. While this works nicely in the CP preview, I can not get the inputs to have a preset value checked in the frontend templates. I am using
craft.formie.renderForm()
to render the form.Steps to reproduce
craft.formie.renderForm()
Form settings
Craft CMS version
Craft 5.2
Plugin version
3.0.0-beta.14
Multi-site?
No
Additional context
I have tested this in a local ddev environment and craft cloud, with craft 5.1 and 5.2 and with and without a custom
themeConfig
passed to therenderForm()
method. Hopefully I have just missed some obvious instruction in the docs (but I have really looked...)