checkboxes
Posted: Fri May 05, 2017 12:12 pm
I have tried to write a function for checkboxes, but it's not working.
This is what I wrote:
function handleCheck(check, field) {
var checkbox = document.getElementsByClassName("checkBoxes").checked;
pui.set(field,checkbox);
}
Then in the Genie on the Onclick Event I put handleCheck("Y", "I_3_26_W2");
where I_3_26_W2 is where the value Y needs to be placed or N if the checkbox is not checked.
I have set the initialization value to "N".
Can you please assist me in the best way to approach checkboxes? I tried searching the forums for the checkboxes but didn't find anything.
This is what I wrote:
function handleCheck(check, field) {
var checkbox = document.getElementsByClassName("checkBoxes").checked;
pui.set(field,checkbox);
}
Then in the Genie on the Onclick Event I put handleCheck("Y", "I_3_26_W2");
where I_3_26_W2 is where the value Y needs to be placed or N if the checkbox is not checked.
I have set the initialization value to "N".
Can you please assist me in the best way to approach checkboxes? I tried searching the forums for the checkboxes but didn't find anything.