Microsoft CRM 2011 HIde Section on a Form

sjmeiners11
sjmeiners11 used Ask the Experts™
on
How do you hide a section on a form?  
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Chinmay PatelChief Technology Ninja
Distinguished Expert 2018

Commented:
Hi sjmeiners11

Xrm.Page.ui.tabs.get("tabname").sections.get("sectionname").setVisible(false);

the names are not Display name here, they are uniqe names that you can get from the properties window.

Regards,
Chinmay.

Author

Commented:
Do I put that in the OnLoad Event on the form
Chinmay PatelChief Technology Ninja
Distinguished Expert 2018

Commented:
Yes.
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

Author

Commented:
Sorry for the delay.  I just tried and it is asking for a library first.
Chief Technology Ninja
Distinguished Expert 2018
Commented:
You will have to add a web resource in your solution and then put in that JavaScript there.
Check this link for references : http://ayazahmad.wordpress.com/2010/09/25/javascript-libraries-in-microsoft-dynamics-crm-2011/

Author

Commented:
This is good stuff.  I am kind of new to this part of the customizations but understand the logic.  Where do I find the JS Common Library to Upload as well as the URL?  
Chinmay PatelChief Technology Ninja
Distinguished Expert 2018

Commented:
You dont have to upload it you can create JS by clicking on text editor buttton when you are creating teh web resource.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial