Skip to content

SubmitForm not picking up all the form items #30

Description

@sgentile

Inside the Form component I added a 'CheckBoxGroup' (react-checkbox-group)

ie.

<CheckboxGroup name="fruit" value={['apple','watermelon']}>
                            <input type="checkbox" value="apple" />Apple
                            <input type="checkbox" value="orange" />Orange
                            <input type="checkbox" value="watermelon" />Watermelon
                        </CheckboxGroup>

on handle submit, the 'fruit' key/pair is not in the values - shouldn't the form pickup all the form fields inside the form?


Form 
                          onValidSubmit={this._handleValidSubmit}
                          onInvalidSubmit={this._handleInvalidSubmit}
                          validationEvent="onBlur">

_handleValidSubmit = (values) => {
        console.log(values);
    };

Activity

  1. heilhead commented on Jan 29, 2016

    @heilhead
    Owner

    I'll look into that, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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