web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Disabling all fields in CRM 2013 (Orion)

(0) ShareShare
ReportReport
Posted on by

All am disabling all the fields on the form. Fields except the check boxes are disabling.

Can you help why check boxes are not disabled.

The code is :

function disableFormFields(onOff) {

   Xrm.Page.ui.controls.forEach(function (control, index) {

       if (doesControlHaveAttribute(control)) {

           control.setDisabled(onOff);

       }

   });

}

function doesControlHaveAttribute(control) {

   var controlType = control.getControlType();

   return controlType != "iframe" && controlType != "webresource" && controlType != "subgrid";

}

Why this code is not working fine in CRM 2013. This is working fine in CRM 2011.

Thanks!!!!

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Thanks Guido Preite, Sorry for such question.

    I have got info that now this security is lifted. Now can I discuss this??

    Now can I get the answer? :)

    Thanks.

  • Suggested answer
    Community Member Profile Picture
    on at

    Check out this - rc.crm.dynamics.com/.../Dynamics-CRM-Upcoming-Release-Information.aspx  - CRM 2013 guide, videos and lot more.

    Aasif Sheikh

  • Community Member Profile Picture
    on at

    Hi everyone,

    In relation to this code already exists a way to succeed in crm 2013?

    Thanks,

    Inês

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
JS-09031509-0 Profile Picture

JS-09031509-0 3

#3
Ciprian  P Profile Picture

Ciprian P 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans