Notifications
Announcements
No record found.
Xrm.Page.getAttribute("customer").setVisible(false); is throwing error TypeError: Object doesn't support property or method 'setVisible'
*This post is locked for comments
I checked phone call entity and I don't see "customer" field, can you check your form, double check schema name? If it doesn't match, you should replace "customer" with correct schema name.
Also, if you are setting form control, it should be Xrm.Page.getControl("field name").setVisible(false);
Customer is the custom field on Phone call. I have rewritten code with Xrm.Page.getControl("Customer").setVisible(false); still giving error ReferenceError: 'leadTypeChange' is undefined
if it is a custom field, then your schema name is most likely not customer (custom field usually have developer prefix), can you go to customizations--> customized the system , then go to phone call entity, field, and double check on the schema name?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2