I have a field with manual select checkbox. Y = 1, N = 0. I want to change the behavior of the checkbox. If yes is selected then obviously no can’t be selected too. However, the nature of check boxes in SC allows this. What I need is if I click the yes and then the no the yes unchecks and vice versa. I’ve tried this javascript but it seems to be malformed.
var checkboxes = document.querySelectorAll('input[type=checkbox]');
if (checkboxes[0].checked = true;)
{
checkboxes[1].checked = false;
}
elseif (checkboxes[1].checked = true;)
{
checkboxes[0].checked = false;
}