Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Marking field as read-only after creation

(0) ShareShare
ReportReport
Posted on by 55

Hi,

I'm trying to mark a field as read-only after creation/initial-save. I thought I could IsValidForUpdate attribute metadata for this, but unfortunately this metadata cannot be changed.

I found an old-solution in this forum, using field-level security. Is this still the recommended approach?
This approach does not work for me: Although a  key icon is shown next to the secured field, I'm still able to modify it. Apart from this, the field-level security solution feels somehow unnatural to me.

Thank you!

  • krombi Profile Picture
    krombi 55 on at
    RE: Marking field as read-only after creation

    Thank you Mehdi El Amri!

    Using createdOn in a business rule did the trick. I think I could have figured that out myself...

    Ravi Kashyap and LA:

    Actually I tested my solution as System administrator. This explains why FLS was not active.

    Thank you guys!

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Marking field as read-only after creation

    Hi,

    I don't think it is supported to update the metadata. You will have to use the supported methods like JavaScript/ Business Rules or FLS as mentioned above.

    Please note that FLS by default doesn't apply for system administrator role so if you are sys admin then youcan still update the FLS. Create a different role and then try it from that.

    Hope this helps.

  • Verified answer
    Fubar Profile Picture
    Fubar 2,752 on at
    RE: Marking field as read-only after creation

    It depends on what you need to do:

    • Field is readonly on a particular CRM Form: Business Rule or JavaScript SDK (other poster provided details for Business Rule)
    • Feld is readonly controlled by security model (e.g. will apply not just to CRM forms or a subset of users will need to update the field later): Field Level; Security.  enable the field for field level security, create the appropriate Field Security Profiles and assign the profile to the User or a Team (note: you cannot test this as System Administrator as sys admin gets full access to the field irrespective of the  field security profiles)
  • Verified answer
    meelamri Profile Picture
    meelamri 13,212 User Group Leader on at
    RE: Marking field as read-only after creation

    Hi,

    You can use a simple Business rule for this scenario.

    First, you need to make this field as business required.

    Then add CreatedOn field in your form.

    In your Business rule, the condition should be: if ( (createdOn is not Empty) AND (your Field is not Empty) ). If yes, Lock your field.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,403 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans