So I would like to disable for user to choose future date in datepicker
<apex:inputfield value="{!currService.csord__Activation_Date__c}" required="true"/>
Thank you for the help !
So I would like to disable for user to choose future date in datepicker
<apex:inputfield value="{!currService.csord__Activation_Date__c}" required="true"/>
Thank you for the help !
Best Answer
You can do this with JQuery UI Datepicker [documentation], so this is essentially a duplicate of this question on StackOverflow.
Specifically, you will probably want to specify
maxDate
[documentation]. You can use more complicated blacklisting/whitelisting schemes by defining abeforeShowDay
method [documentation] but that seems like overkill for your requirements. You will need to useapex:inputText
instead and bind it to your controller differently.Controller:
VisualForce: