Open radiomime opened 4 months ago
you might try "submit": true instead of "value":true
the doc says options are for string values not boolean
Thanks for the reply @sdetweil.
I templated the above schema (with the value
key) from this part of the projects wiki which gives a similar example, but with strings instead of boolean values.
If I don't include "value": true
, both submitted values false. This is also the case if I use "submit": true
instead.
ok, I'll look at it. the doc says "strings"
at this time, this is currently a restriction, only works with string entities..
What I want to happen
I want two radio buttons to from, and I'd like the text in the box to be different than the value being sent. I'd also like the box to be preselected if it was presubmitted (by using the value key).
Issue
No matter which button I select before submitting, the value sent is
true
in this example:The value sent should be
false
when selecting"I'm not cool"
and hitting submitWhat I'd expect
This exact example works as I'd expect using strings instead of booleans: