Skip to content

Checkbox validation #2

@jnar

Description

@jnar

Hi, thank you for this great work im currently using form_builder and saved me lots of time creating my forms.

I made a change because i was having issues with the checkbox validation when you have only one, around line 328 changed:
set_checkbox($id . '[]', $box->id, $selected)

for:
set_checkbox($id . ((count($boxes) > 1) ? '[]' : ''), $box->id, $selected)

Just to let you know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions