Archive
Posts Tagged ‘hide section’
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,555,883 hits
Tweets
- RT @TaikiYoshidaEN: Awesome to see we have a shiny new public facing website for Power CAT! 😻😻😻 microsoft.github.io/powercat/ #PowerApps #PowerA… 16 hours 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… 16 hours ago
- RT @ManuelaPichler_: CoE kit but make it more fluent-y #comingsoon https://t.co/kcSzPqwZhM 17 hours ago
- New Blog Post: C# Basics | Why Interfaces rajeevpentyala.com/2023/01/07/c-b… 2 weeks ago
- New blog post : Dataverse solution import error | Environment variable value cannot be an empty string rajeevpentyala.com/2023/01/05/dat… 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
- [Step by Step] Connecting to Azure SQL Server using OLEDB Connection from SSIS
- Power Automate Flows | 'Callback Registration Expander' System Jobs stuck at 'Waiting For Resources'
- [Step by Step] Postman tool with Microsoft Dataverse Web API
- God Mode - Level Up - Dynamics 365 Chrome Extension
- [Step by Step] Dataverse | Plugins | Using Dependent Assemblies
- Auto generate new GUID for ‘uniqueidentifier’ column in SQL Table
- Associate/Disassociate plugin messages in CRM
- Power Apps - 'Environment Variables' and their usage in Canvas Apps