Default values are currently settable in the zod object, but observe this degenerate case:
noWorkStudyUnrelated: {
description: {
en: 'a',
fr: 'b'
},
label: {
en: 'I have not worked / studied at all during the past week for reasons unrealted to the disorder.',
fr: "Je n'ai pas travaillé ou étudié du tout pour des raisons non liées au problème."
},
kind: 'boolean',
variant: 'radio'
},
This is rendered on the page as an empty (unselected) radio box boolean.
noWorkStudyUnrelated: z.boolean().default(true),
This radio box actually has default value true, and if I press submit the form will be accepted with that value.
Default values are currently settable in the zod object, but observe this degenerate case:
This is rendered on the page as an empty (unselected) radio box boolean.
This radio box actually has default value true, and if I press submit the form will be accepted with that value.