Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.
This repository was archived by the owner on May 22, 2021. It is now read-only.

Boolean values for use with checkbox/radio buttons/etc #9

Description

@leightonthomas

Any non-text field doesn't re-populate though the data will get saved.
For example,

$builder
    ->add(
        'my_setting',
        'checkbox',
        [
            'required' => false
        ]
    )
    ->add('Save', 'submit', ['attr' => ['class' => 'btn btn-flat btn-primary']]);

would save a checked box as 1 which is what we want, but upon loading the page again the box will be unchecked. I think this is because it isn't converted to the correct type depending on what the form is expecting (e.g. a boolean for a checkbox)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions