web
You’re offline. This is a read only version of the page.
close
Skip to main content
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!

I have the same question (0)
  • Verified answer
    meelamri Profile Picture
    13,216 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.

  • Verified answer
    Fubar Profile Picture
    2,756 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
    RaviKashyap Profile Picture
    55,410 Moderator 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.

  • krombi Profile Picture
    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!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 149

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 142

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 125 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans