Page 1 of 1

Checkboxes only provide last checked box to REST request?

Posted: Thu Jun 14, 2012 8:04 pm
by Mo

I have a checkbox item populated by a response from a REST request. That part works great, checkbox shows up for every item. But when I map it back out for another REST request, it only sends the last checked box in the list. How do I send the info for each of the checked boxes?

Thanks, working great most of the way!!


Checkboxes only provide last checked box to REST request?

Posted: Thu Jun 14, 2012 9:09 pm
by maxkatz

You should get an array of all value selected:

Image


Checkboxes only provide last checked box to REST request?

Posted: Thu Jun 14, 2012 10:14 pm
by Mo

Can you show me your mapping on that?

Thanks


Checkboxes only provide last checked box to REST request?

Posted: Fri Jun 15, 2012 3:00 pm
by maxkatz

Checkboxes only provide last checked box to REST request?

Posted: Sat Jun 16, 2012 12:59 am
by Mo

That's the way I have it mapped, but it really is sending only the last item checked. I'm populating the checkbox from a REST response. Could that have an effect on this? I've tried mapping it everyway possible.


Checkboxes only provide last checked box to REST request?

Posted: Sat Jun 16, 2012 1:02 am
by maxkatz

In the JavaScript function, add this code:

console.log(value);

and then check in Console what you get.