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
mac adminmac admin 

Validation for date picker

Hi all,
I want to make the standard date picker as readonly if a check box is checked in custom vfpage.
I have used readonly= true. but it doesn't worked for me.

Can anyone help me over here.

Thanks in advance.

Regards,
mac.
NagendraNagendra (Salesforce Developers) 
Hi,

Please try with below code which might help you to accelerate further with the above requirement.
<apex:inputcheckbox value="{!checked}" disabled="{!IF(checked == true, true,false)}"/>
Please let me know if this helps.

Mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Best Regards,
Nagendra.