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')
Re-check the internal names of the fields, probably you're missing the prefix like "new_custid" or something like that
one of the field names is not correct or not added to the form
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,113 Super User 2024 Season 2
Martin Dráb 229,918 Most Valuable Professional
nmaenpaa 101,156