Unchecked checkboxes are rechecked when form is retrieved
Opened this issue · 0 comments
onshop commented
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);