Hi,
I am hiding fields based on optionset value.Even business rule is not working
if(value == 920000000)
{
formContext.getAttribute("changingsegmentfrom").setVisible(false);
formContext.getAttribute("changingsegmentto").setVisible(false);
formContext.getAttribute("custid").setVisible(false);
formContext.getAttribute("iscurrentteam").setVisible(false);
formContext.getAttribute("quarterin").setVisible(false);
}
Getting the below error
TypeError: Cannot read properties of null (reading 'setVisible')