function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shibamjee Choudhary 8Shibamjee Choudhary 8 

1. Create a new object “Sample Request” a. Create field “Status” with options: Open, In Approval, Approved, Rejected, In Development, Closed (it should not be editable by users, it will be updated by workflows as you will see)

Sugest Some steps to overcome these Question
Sujeet PatelSujeet Patel
Hii Shibamjee 
You can do with the help of formula field for example you have to create Status field as Formula Field and Create WorkFlow that workflow will update the field according to rule critiria. We using Formula Field reason is that at the time of insertion or updation you don't need to insert records on Formula Field This is one solution.

And Second Solution is that You have to create A trigger Like Below given and put DML Prevention line "addErro('Error')".
This will Occur when user will trying to update field at that situation User will get Error But Filed will Be update through WorkFLow
trigger BI_Field_restrication on MyObject(after insert,before update)
{

    if(trigger.isAfter){
        if(trigger.isUpdate){
            for(MyObject a:trigger.new){
            
                if(Trigger.oldMap.get(a.Id).Status__c != a.Status__c)
                {
                     a.addError('You Can Not Update This Filed Directly');       
                }
            
            }
        }
    }

}

I hope My this solution will be help full for you.