Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Unchecked checkboxes are rechecked when form is retrieved #16

Open
onshop opened this issue Aug 7, 2015 · 0 comments
Open

Unchecked checkboxes are rechecked when form is retrieved #16

onshop opened this issue Aug 7, 2015 · 0 comments

Comments

@onshop
Copy link

onshop commented Aug 7, 2015

SAYT retains the checkboxes that were checked but does not record the values of checkboxes that were unchecked. To work around this I suggest unchecking all checkboxes in the checkbox group initially and then SAYT can check the checkboxes with the stores values:

$.each(field_names_array, function(key, value)
{
    if(strpos(value, ':::--MULTISELECTSPLITTER--:::') > 0)
    {
    $('input[name="+ $key +"]').prop('checked', false);
onshop added a commit to onshop/jquery-save-as-you-type that referenced this issue Aug 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant