Hide/Show sections using JScript in CRM 2011
Hi,
We can’t directly hide or show the section using
- Xrm.Page.ui.controls.get(“{section_name}”).setVisible(true/false)
You have to first get the “Tab” control of your “Section”.
Below is the script to Hide/Show sections
// Get the Tab which contains your Section
var tabCtrl = Xrm.Page.ui.tabs.get(“{tab_name}”);
if (tabCtrl && tabCtrl.sections.get(“{section_name}”)) {
tabCtrl.sections.get(“{section_name}”).setVisible(true/false);
}
You can get the name of Tab or Section from customization form.
🙂
Advertisement
Comments (0)
Trackbacks (0)
Leave a comment
Trackback
Stats
- 1,608,380 hits
Join 408 other subscribers
Top Posts
- Power Apps component framework (PCF) - Beginner guide
- [Step by Step] Power Apps | Show pop ups in Canvas App
- Power Automate Cloud Flow | 'Correct to include a valid reference' error
- [Step by Step] Canvas App | Dataverse | Filter, Patch, For All, Lookup
- [Step by Step] Embed "Azure Blob" connector Canvas App in Model Driven App
- [Step by Step] Power Apps Portal - Configure Global Search
- Power Platform CLI | Pack and Unpack solution using map xml
- Set “Created On”,” Created By”, “Modified On”, “Modified By” fields using SDK/Data Import/Plug-in – Dynamics 365
- Useful JScript syntax's – ADX/Dynamics 365 Portals
- Power Apps - Component library