I would like to populate a checkbox with javascript, however when I do, I get the error on submission below. The variable does get set correctly so that we can use it in reporting and as metadata, but the error breaks the submission. Is it possible to disable this check so that we can dynamically set the values of a checkbox/radio?
Invalid form data was sent to the server. This can occur if the form is out of date. Please refresh this form and try again. [LFF2106-InvalidDataSent]
Here is the javascript that populates the options
//For each value for(x=0;x<lookupTable.values.length;x++){ //Create a choice container var choice = document.createElement('span'); choice.classList.add('choice'); document.getElementsByClassName('radio-checkbox-fieldset')[1].appendChild(choice); choice.classList.add('choice'+Num(x+1)); let value = lookupTable.values[x]; //Fill the container with an input and label $('.choice'+Num(x+1)).append('<input name="Field1" id="Field1-'+Num(x+1)+'" type="checkbox" value="'+value+'" vo="e" data-parsley-class-handler="#Field1" data-parsley-errors-container="#Field1" data-parsley-multiple="Field1">').append('<label class="form-option-label" for="Field1-'+Num(x+1)+'">'+value+'</label>'); }