+ Start a Discussion
Staci CaraStaci Cara 

make field read only when new Object gets created

Hi all,

i am having trouble to figure out how to implement the following: 

- I have an Object, eg. Account, with one field that the user can update anytime. 
- Once a new Object, eg. AccountPlus__c, gets created I want the field from Account to switch to Read-Only, so that no User can edit it anymore.
- The same field also exists in AccountPlus__c and once a record of AccountPlus__c gets created you can change the field only via this record.
- The information of the same field though, shall be transfered to the Account Object an update it (allthough the field is read only, even for the same User that creates the record of AccountPlus__c)

Do you have any Ideas how that could look? I thought of something like a trigger (with/without a Validation Rule).

Thank you in advance!!!
Best regards, Staci

jane1234jane1234
can you please let me know how the acccount and  AccountPlus__c is related?
Gustavo BertolinoGustavo Bertolino
But how could this field be changed if it will be set as read-only field? If this field is a formula field, it works like a getter and, thus, you cannot change its value. I'm trying to get your question.