Answered by:
CRM 2011: Disable Form Selector

Question
-
Hello,
Is there a way, via jscript or otherwise, to disable the Form Selector for a form (so that the user is not able to select a different form, even if they have access to it via security role)?
Thanks in advance.Friday, August 17, 2012 7:07 PM
Answers
-
Hello,
As far as I know at the moment it is possible to hide form selector using following code:
document.getElementById("crmFormSelector").style.display = "none";
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)
- Proposed as answer by Andrii ButenkoMVP, Moderator Saturday, August 18, 2012 11:31 PM
- Marked as answer by Andrii ButenkoMVP, Moderator Wednesday, October 31, 2012 12:00 PM
Saturday, August 18, 2012 11:31 PMModerator
All replies
-
Hi ..
You Can Hide the section.. use bellow code
function HideShowSection(tabName, sectionName, visible)
{ Xrm.Page.ui.tabs.get(tabName).sections.get(sectionName).setVisible(false); }
HideShowSection("general", "address", false); // "false" = invisible
http://gtcrm.wordpress.com/2011/03/16/jscript-reference-for-microsoft-dynamics-crm-2011/
- Edited by Parthiban.T Saturday, August 18, 2012 5:39 AM
Saturday, August 18, 2012 5:19 AM -
through javascript we can hide a selection in form
Xrm.Page.ui.tabs.get("yourtabname").sections.get("your section name").setVisible(true);
u have mention the tab name and selection name in the tab
ms crm
Saturday, August 18, 2012 8:00 AM -
Hello,
As far as I know at the moment it is possible to hide form selector using following code:
document.getElementById("crmFormSelector").style.display = "none";
Microsoft CRM Freelancer
My blog (english)
Мой блог (русскоязычный)
- Proposed as answer by Andrii ButenkoMVP, Moderator Saturday, August 18, 2012 11:31 PM
- Marked as answer by Andrii ButenkoMVP, Moderator Wednesday, October 31, 2012 12:00 PM
Saturday, August 18, 2012 11:31 PMModerator -
This works for me:
document.getElementById("crmFormSeletor").disabled = true;Wednesday, October 31, 2012 11:50 AM -
This works for me:
document.getElementById("crmFormSeletor").disabled = true;Your code will throw an error.
Following could work:
document.getElementById("crmFormSelector").disabled = true;
Be more attentive ;)
Wednesday, October 31, 2012 11:59 AMModerator -
Hi,
document.getElementById("crmFormSelector").style.display = "none";
Here we get the id "crmFormSelector" from developer tools.
Thanks,
SASANK K
Wednesday, October 31, 2012 12:23 PM -
Hi all,
I was able to hide the form selector in CRM 2016 using the below code
parent.window.document.getElementById("formselectorcontainer").style.display = "none";
Tuesday, November 1, 2016 10:34 PM