Skip to content

Update strange defaultGetFormValue to support checkboxes #3

Description

@wswoodruff

https://github.com/BigRoomStudios/strange-forms/blob/master/src/index.js#L208

Check the type attribute of event.target and return the checked property if it's a checkbox

An additional enhancement might be to provide a way to give meaningful label for the checkbox being checked. Perhaps by reading an attribute that SF says it will look for, ex.-

<input type="checkbox" data-value="I'm the checkbox value from strange forms if I'm checked!"/>

Metadata

Metadata

Assignees

No one assigned

    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