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)

Locking an order

(0) ShareShare
ReportReport
Posted on by

Hi All

a bit of a strange question i have just noticed once an order is placed users can still change that order. I would like to have the orders locked down. I was just going to do a work flow to lock all the fields but thought i would ask if there is a setting somewhere to do this

Kind Regards

Dan 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Rawish Kumar Profile Picture
    13,758 on at

    There are two ways you can do this

    1. create a business rule and lock all the field based on a condition.

    2. create a javascript

    i did something like this on a custom entity ; from which you can take a reference :

    disableFormFields: function()

       {

           debugger;

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

               var controlType = control.getControlType();

               if (controlType != "iframe" && controlType != "webresource" && controlType != "subgrid")

               {

                   control.setDisabled(true);

               }

           });

    }

    mark my answer as verified if helpful.

  • Community Member Profile Picture
    on at

    That's great thanks

    Dan

  • Community Member Profile Picture
    on at

    Hi

    I used the java script and it worked great. Then i noticed today users can still edit the actual products in the sub grid. How would like lock this down aswell

    Kind Regards

    Dan

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans