Hi all,
In the below code, selectedValues return the string array of text & values. Before comparing selectedValues in the if condition, how do i separate the number string & convert it to integer?
function SetMultiSelValues(executionContext){
var formContext = executionContext.getFormContext();
var selectedValues = formContext.getAttribute("new_flagreason").getSelectedOption();
if(selectedValues == null){
formContext.getAttribute("iis_flagstatusnew").setValue("0"); //No issues
}
else if(selectedValues == 100000000){
formContext.getAttribute("iis_flagstatusnew").setValue("0"); //No issues
}
else{
formContext.getAttribute("iis_flagstatusnew").setValue("1"); //Issues Exists
}
}
*This post is locked for comments