You need to sign in to do that
Don't have an account?
Lisitha reddy Lakkireddy 4
Customized Date field
- I have a field that needs users to select only FUTURE WEDNESDAYS.
- The dates must be submitted by wednesday 12pm for the following wednesday. We should no longer be able to select next wednesday if we are trying to enter a date after 12pm on a wednesday.
Check the code in https://salesforce.stackexchange.com/questions/105197/display-only-future-dates-in-datepicker. You need to customize the code by setting min max dates to reflect Wednesday.
Copied text from post:
"you can use <apex:input type="date" with jQuery Datepicker where property minDate set to 0 (to show only future dates). I used a normal html <input type="text" to show the jQuery Datepicker and hide the <apex:input type="date" field. The entered value is copied with the code $j("#fromDatePicker").value($j("#myPage\\:myForm\\:fromDate").value());
Other helpful link: https://stackoverflow.com/questions/42064478/how-to-enable-only-the-current-and-future-dates-in-2-cutoff-days
If this information helps, please mark the answer as best.Thank you