You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If submit_form gets an arrayref it should re-use the logic in tick of cycling through the form inputs by that name and checking possible_values. As it stands it will only try to set the value on the first checkbox in a group. If the value submitted does not match the possible values of the first checkbox you get a very confusing Illegal value for 'foo' for field 'bar' error message.
Yes, you can solve this via tick and untick, but you should also just be able to submit checkbox values directly via submit_form, as you can with other form fields.
The text was updated successfully, but these errors were encountered:
oalders
changed the title
submit_form should be able to handle multiple checkbox valuessubmit_form should be able to handle multiple checkbox values
Jul 26, 2018
oalders
changed the title
submit_form should be able to handle multiple checkbox values
submit_form should be able to handle multiple checkbox values
Jul 26, 2018
If
submit_form
gets an arrayref it should re-use the logic intick
of cycling through the form inputs by that name and checkingpossible_values
. As it stands it will only try to set the value on the first checkbox in a group. If the value submitted does not match the possible values of the first checkbox you get a very confusingIllegal value for 'foo' for field 'bar'
error message.Yes, you can solve this via
tick
anduntick
, but you should also just be able to submit checkbox values directly viasubmit_form
, as you can with other form fields.As it stands, given the form:
You can submit via:
The text was updated successfully, but these errors were encountered: