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,558,540 hits
Tweets
- RT @ManuelaPichler_: I suffered a concussion last week, and I'm so glad to see this video is actually REAL and not just something my brain… 4 days ago
- RT @TaikiYoshidaEN: Awesome to see we have a shiny new public facing website for Power CAT! 😻😻😻 microsoft.github.io/powercat/ #PowerApps #PowerA… 1 week ago
- RT @ravichada: 🎥 The demo video is ready now. Do check out the Dataverse Security Roles risk assessment tool in action. Leave a comment or… 1 week ago
- RT @ManuelaPichler_: CoE kit but make it more fluent-y #comingsoon https://t.co/kcSzPqwZhM 1 week ago
- New Blog Post: C# Basics | Why Interfaces rajeevpentyala.com/2023/01/07/c-b… 4 weeks ago
Join 400 other subscribers
Top Posts
- Auto generate new GUID for ‘uniqueidentifier’ column in SQL Table
- [Step by Step] Postman tool with Microsoft Dataverse Web API
- Power Apps component framework (PCF) - Beginner guide
- [Code Snippet] Custom Workflow Activity with Input and Output Params
- [Step by Step] Connecting to Azure SQL Server using OLEDB Connection from SSIS
- Power Platform - Pass json collection from Canvas App to Power Automate
- [Step by Step] Power Apps Portal - Configure Global Search
- [Step by Step] Model-driven apps | In-app notifications
- [Step by Step] Model Driven App | Grids | Navigate to custom page on row click
- Data Tables - Error - Non table node initialization