ratio field Why must one be selected?

default discord avatar
liulian-13
9 months ago
1 4

image

image

There are cases where neither is selected. This situation cannot be achieved with ratio

  • discord user avatar
    DanRibbens
    Payload Team
    9 months ago

    The required validation on radios was fixed in a more recent version. Upgrading Payload will help, but not completely fix your problem.

    Radio inputs in the browser don't work the way you want. There is no way to deselect a value without adding a clear button. You need a third option for 'null' in your list it seems.

  • default discord avatar
    liulian-13
    9 months ago

    It can only be realized by select, but it is inconvenient

    2 replies
    discord user avatar
    JessChowdhury
    Payload Team
    9 months ago

    @zhounewz change require to required and give that a shot.

    discord user avatar
    JessChowdhury
    Payload Team
    9 months ago

    @zhounewz also if your options only need to be true and false, you could use a checkbox field here.

  • default discord avatar
    liulian-13
    9 months ago

    Changing from require to required didn't work.
    image
    There are 3 options for me, unselected, true or false.

    1 reply
    discord user avatar
    JessChowdhury
    Payload Team
    9 months ago

    @zhounewz what version of payload are you on?

  • default discord avatar
    liulian-13
    9 months ago

    @JessChowdhury "payload": "1.2.5"

Open the post
Continue the discussion in GitHub
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.