Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Lock Form For some Time

Posted on by Microsoft Employee

Hi Community,

I have a strange issue that, on change of one field value from NO to YES, my all fields should lock for 10 minutes, and if my field value change from YES to SUCCESS  then unlock all fields in form.Please suggest it is possible or not.

regards,

saikrishna

*This post is locked for comments

  • Suggested answer
    Kishor Kumar Profile Picture
    Kishor Kumar 3,702 on at
    RE: Lock Form For some Time

    Hi SaiKrishna, you can do with javascript

  • Suggested answer
    ashok teja Profile Picture
    ashok teja 290 on at
    RE: Lock Form For some Time

    Hello,

    Yes it's possible, Add onchange event to your required field then use following code to lock the fields.

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

             var controlType = control.getControlType();

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

                 control.setDisabled(true);

             }

         });

    If found useful, please mark the answer as verified.

    Thanks

    Ashok J

    XRMWEBKIT | CRMPORT | DynamicsHelpmate 

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans