Archive
Posts Tagged ‘tab’
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.
🙂
Stats
- 1,556,694 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 hours ago
- RT @TaikiYoshidaEN: Awesome to see we have a shiny new public facing website for Power CAT! 😻😻😻 microsoft.github.io/powercat/ #PowerApps #PowerA… 4 days 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… 4 days ago
- RT @ManuelaPichler_: CoE kit but make it more fluent-y #comingsoon https://t.co/kcSzPqwZhM 4 days ago
- New Blog Post: C# Basics | Why Interfaces rajeevpentyala.com/2023/01/07/c-b… 3 weeks ago
Join 400 other subscribers
Top Posts
- Power Apps component framework (PCF) - Beginner guide
- [Code Snippet] Custom Workflow Activity with Input and Output Params
- Auto generate new GUID for ‘uniqueidentifier’ column in SQL Table
- Power Apps - 'Environment Variables' and their usage in Canvas Apps
- Azure DevOps (ADO) | Pipeline failure | You need the Git 'GenericContribute' permission
- [Step by Step] Power Apps Portal - Configure Global Search
- Associate/Disassociate plugin messages in CRM
- [Step by Step] Connecting to Azure SQL Server using OLEDB Connection from SSIS
- Canvas App Import Failure | CanvasAppEnvironmentMismatch error
- C# - SQL - Bulk Insert records from Data Table and CSV