Overriding checkbox options leads to invalid submit #1557
-
We overwrite all available options of a checkbox field. In the backend we just setup a single placeholder option as Formie asks for at least one option. When submitting the form, we receive an error messag: [Field Label] is invalid. We checked: The HTML of the inputs corresponds with the HTML that formie outputs when not overwriting the field options. Reading the docs we understand it is possible to set available field options via Twig, overwriting the ones set in the backend. Does someone have a hint how to trace the error?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Can't seem to replicate this, sorry. Can you confirm things are working with a simplified test? {% do form.setFieldSettings('checkboxes', {
options: [
{ label: 'Override 1', value: 'override1' },
{ label: 'Override 2', value: 'override2', isDefault: true },
{ label: 'Override 3', value: 'override3', isDefault: true },
],
}) %} |
Beta Was this translation helpful? Give feedback.
Can't seem to replicate this, sorry. Can you confirm things are working with a simplified test?