jsonform icon indicating copy to clipboard operation
jsonform copied to clipboard

Required checkboxes

Open loyzious opened this issue 1 year ago • 2 comments

Hi,

it seems like it has no effect to set required=true here. can you confirm? "applications": { "type": "array", "title": "Applications", "required": true, "items": { "type:": "string", "enum": [ "appX", "appY" ] } } i'm looking for a solution that forces the user to choose at least one option.

Thanks!

loyzious avatar Aug 29 '24 12:08 loyzious

correct the form does not force checkbox selection.. there is no builtin browser way to do that you can add an onSubmit() function to your form handler to check it and prevent submission with a message in the field,, but you have to code it..

sdetweil avatar Sep 02 '24 02:09 sdetweil

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 11:04 stale[bot]