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.
🙂
Comments (0)
Trackbacks (0)
Leave a comment
Trackback
Stats
- 1,242,702 hits
Translate
Categories
Top Posts
- [Step by Step] Postman tool to test Dynamics 365 online Web API
- Auto generate new GUID for ‘uniqueidentifier’ column in SQL Table
- Power Apps component framework (PCF) - Beginner guide
- Useful JScript syntax's – ADX/Dynamics 365 Portals
- [Step by Step] Restore a Database from Azure Blob to Azure SQL Server
- [Code Snippet] Custom Workflow Activity with Input and Output Params
- [MS Word] The Linked file isn't available
- [Step by Step] Data Export Service - Replicate CDS data to Azure SQL Server Database
- C# - Bulk Update Records - Pass Data Table to SQL Stored Procedure
- Aggregate Query Record Limit Exceeded – Exception in CRM