Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Ajax-form ignores regular checkbox group #60

Closed
eximius313 opened this issue Apr 22, 2015 · 1 comment
Closed

Ajax-form ignores regular checkbox group #60

eximius313 opened this issue Apr 22, 2015 · 1 comment

Comments

@eximius313
Copy link

When I have a form with following input group (generated by "@inputCheckboxGroup" in Play Framework"):

<span class="buttonset" id="test2">  
        <input type="checkbox" id="test2_PRESIDENT" name="test2[]" value="PRESIDENT"  />
        <label for="test2_PRESIDENT">President</label>

        <input type="checkbox" id="test2_CEO" name="test2[]" value="CEO" checked="checked" />
        <label for="test2_CEO">Ceo</label>

        <input type="checkbox" id="test2_SPECIALIST" name="test2[]" value="SPECIALIST" checked="checked" />
        <label for="test2_SPECIALIST">Specialist</label>
  </span>

The regular form sends the FormData (in request headers) like this:

test2[]:CEO
test2[]:SPECIALIST

Unfortunately ajax-form sends it like this

test2[]:VALUE_OF_LAST_CHECKBOX_ONLY

Why is that happening?

@rnicholus
Copy link
Owner

Duplicate of #48 & #57.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants