Hi all,
I want to hide a multi Selectoptionset on account form. The reqirement is, wenn another two optionset field on this form set to a Value (e.g. ja), then change the visibility of Multi optionset to false.
I have used this Code on the field properties of my Two option set On change, but i cant understand why it doesnt work :
function toggleMultiSelectVisibility (executionContext) {
var formContext = executionContext.getFormContext(); // get formContext
if (formContext.getAttribute('pb_type').getValue() === "ja" {
formContext.getControl("pb_testmultiselectoptionset").setVisible(false);
}
else {
formContext.getControl("pb_testmultiselectoptionset").setVisible(true);
}
Does anybody have any idea?
Many Thanks in advance