SOLVED: Bricks Form radio, checkbox, select does not accept zero value

Steps to recreate:

  1. create a bricks form on any page
  2. include radio, checkbox, or select field
  3. assign options - 1:Yes / 0:No

If you select or check No, the value is still No and not 0 (zero).

Workaround: I assigned 2 instead of 0

Edit: bug still present in Bricks 2.3.4

Hi @jayguntor,

Can you please be more specific, like where you check the value?

What action are you set on the form?

Some screenshots would be helpful.

Regards,
Jenn

Just try it yourself. Put a form. Put a radiio field and assign options 1:Yes / 0:No. You will not get 0 as a value for option ‘No’.

Hi @jayguntor ,

Thank you very much. I can see the input value via the browser dev tool is “No” instead of ‘0’ as well.

I have recorded this in the bug tracker.

Regards,
Jenn

We’ve addressed this in Bricks 2.3.5, now available as a one-click update in your WordPress Dashboard.

Please read the changelog entry before updating, and let us know if you experience any issues.