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
svpsvp 

How to make a field Read-only when check box is clicked

Hi,

 

I have to make a field on opportunity to read only state when a check box (another field) is clicked. How to write a trigger ?, Any help must be highly appreciated.

 

 Thanks in advance !

 

 

Regards,

SVP

 

Navatar_DbSupNavatar_DbSup

Hi,

 

For this functionality you have to create a vf page because trigger is fired only on DML operation.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

Suresh RaghuramSuresh Raghuram

no need of trigger try field dependency.

suppose if the field is not empty then the other field can be in write mode else make it as read only or disappear if this field is choosen.

svpsvp

Thanks for your reply.

 

How it works using dependency ?,

By the way I need to make a standard field as read only based on custom check box, I think it is not possible to use Custome field on controlling side.

 

Thanks,

svp