web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

how to show/hide field using java script on phone call entity?

(0) ShareShare
ReportReport
Posted on by 342

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 have the same question (0)
  • Verified answer
    TylerS.Dev Profile Picture
    729 on at

    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);

  • Sandy Hello Profile Picture
    342 on at

    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

  • TylerS.Dev Profile Picture
    729 on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans