Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to make non-editable field.?

Posted on by 12,070 Super User 2024 Season 1

Hi all,

When I create quote from opportunity as shown below

6175.Enum-Values-for-voucher-entity.png

whenever I select this field. I need to disable opportunity field field as shown below

0880.Untitled1.png

for all except administrator.  How can I do that?

Thank you

*This post is locked for comments

  • Verified answer
    PS Profile Picture
    PS 23,577 on at
    RE: How to make non-editable field.?

    Are there possibilities that opportunity lookup field on quote, will be filled up manually by users?

    As in do you create quote directly without having any opportunity?

    If no, then my previous method will work.

  • Suggested answer
    shivaram Profile Picture
    shivaram 3,315 on at
    RE: How to make non-editable field.?

    Hi Abdul,

    Based on your last comment you need to write Javascript for check whether Opprtunity field have value or not. If Opportunity field is having value then make it as disable.

    if(Xrm.Page.getAttribute("fieldname").getValue()[0].id!=null){

    Xrm.Page.getControl("fieldname").setDisabled(true);

    }

  • Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: How to make non-editable field.?

    Hi Prashant Shukla

    I have a condition, whenever Quotes's opportunity field (a field on Quote's form) having opportunity. The field Type on opportunity form disabled for all except system admin.

    Thank you

  • Suggested answer
    PS Profile Picture
    PS 23,577 on at
    RE: How to make non-editable field.?

    Hi Abdul,

    Step 1: Go to settings>>Customization>>Customize the system>>Expand Entity>>Scroll Down to Quotes>>Fields>>Opportunity>> Enable field security>>Save & Publish

    2746.7.PNG

    Step 2: Go to settings>>Security>>Field Security Profiles

    1. System Admin: Since you are the system admin, you get access to this field automatically

    8712.6.PNG

    Create a new profile for users, whom you want to read this field but not update

    8132.8.PNGAdd Users to this Team, all users who should not be able to edit this field

    Set security level on the field

    2746.7.PNG

  • Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: How to make non-editable field.?

    Hi Raz Dynamics

    I am using crm 2011. May you please explain more.

    Thank you

  • Suggested answer
    razdynamics Profile Picture
    razdynamics 17,304 User Group Leader on at
    RE: How to make non-editable field.?

    Hi you can do this easily  without javascript by creating a different form for administrator that allows access to this field.

    The users form can have a specific business rule to lock the field and set the scope to the form. Or You can remove the from their form, enable security roles for the specific form, so they dont have access to the admin form.

    Hope that helps?

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans