diff --git a/wcs/qommon/static/js/qommon.forms.js b/wcs/qommon/static/js/qommon.forms.js index d7faf6ff2..e4366e170 100644 --- a/wcs/qommon/static/js/qommon.forms.js +++ b/wcs/qommon/static/js/qommon.forms.js @@ -480,8 +480,10 @@ $(function() { if ($(widget).is('.widget-prefilled') || $(widget).is('.widget-readonly') || data.modified_field == 'user') { // replace text input value $(widget).find('input[type=text], input[type=tel], input[type=numeric], input[type=email], input[type=date], textarea').val(value.content); - // replace checkbox input value - $(widget).find('input[type=checkbox]').prop('checked', value.content); + if ($widget.hasClass('CheckboxWidget')) { + // replace checkbox input value + $widget.find('input[type=checkbox]').prop('checked', value.content); + } } } });