hi, I have an issue with check box. I got a checkbox item in a replicant. The validation is, only one checkbox should be checked from all the replicants.so i have done that validation,it is showing an alert when user tries to check more than one check box.now after showing an alert i want to uncheck the checkbox which is checked.How to do using formApI?thanks in advance,regards,chakri
cb_item.checked = false;
item.setValue("");
var optionsArray = itemObject.getOptions();optionsArray[0].selected = false;itemObject.setOptions(optionsArray);
Boris, that's the javascript answer, not the formapi answer...That's not going to work either...In FormAPI, if you know which checkbox you want to uncheck, lets say it's the first checkbox, you'll want to do this: var optionsArray = itemObject.getOptions();optionsArray[0].selected = false;itemObject.setOptions(optionsArray);~Jeff
Hi,I am facing the similar kind of issue. I want to deselect the checkbox into the datacature.cfg when certain codition met but unable to do it.code snnipets are as(function called on event onItemChange):function removeAudience() {var getRemoveAud = IWDatacapture.getItem("/REMOVE_AUDIENCE");var getAudienceValue = IWDatacapture.getItem("/AVAILABLE_AUDIENCES");alert("Into Remove Audience chkbox...value is ="+getRemoveAud.getValue());//alert('chkbox status BEFORE'+getRemoveAud.checked);if ((getRemoveAud.getValue()=="0") && (getAudienceValue != "")){ var chooseRemove = confirm('Are you sure you want to continue?');if(chooseRemove==true){ getAudienceValue.setValue(""); var optionArray = ""; getRemoveAud.selected = false; //getRemoveAud.checked = false; getRemoveAud.setValue("1");} //alert('chkbox status AFTER'+getRemoveAud.checked);}Please guide me on this issue.Thanks.}