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
Chandu007Chandu007 

how to make visualforce component read only based on Case status?

i want to make my visualforce component Read only when Case object status changed to Closed. i know we have Read only attribute in VF Page. do we have this in VF component too?
ANUTEJANUTEJ (Salesforce Developers) 
Hi Chandu,

>> https://trailblazer.salesforce.com/ideaView?id=08730000000ij3fAAA

The above link is to an idea as readOnly attribute is not present in the visualforce component as per the documentation [linked below]

>> https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_component.htm

If I may I would suggest you to try checking the lightning component.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.
Chandu007Chandu007
Hi AnuTej,

Thanks for your suggestion and confirmation on Attributes of VF Component. we have developed VF Component already and want to make Read only if Case Object Record status is Closed.

Can we hide custom command button(Save & Submit) on this VF Component if Case status is Closed? as workaround. Please confirm.


Thanks,
Chandra