Hi,
I have a multi-select choice field and based on the value selected from that field, I want to show/hide another field. So I want to show another field only if a particular value is selected from the dropdown. Here is the code I wrote, but its not working. So can you please tell me what is wrong with my code...
function hideFieldsReviewer(executionContext) {
var formContext = executionContext.getFormContext();
var agencytypecodevalue = formContext.getAttribute(“new_agencypersontypecode”).getValue();
if (agencytypecodevalue != null && agencytypecodevalue != 248870016 ) {
formContext.getControl(“new_reviewertype”).setVisible(false);
}
else {
formContext.getControl("new_reviewertype”).setVisible(true);
}
}
Thanks!