Hi, We are working on a house exchange website. in the CRED form I have 2 dates. A start date and an end date, for the availlability of a property. The start date must be a date in the future and the end date must be greater then the start date. Is there a way to make sure people don't make mistakes with entering dates?
Hi, we tried your suggestion as given in your second link, namely:
jQuery(window).bind("load", function() {
jQuery('[id^="cred_form_163_1-textfield"]').datepicker('option',{minDate: 0,maxDate: 90});
});
replacing "163" by the id of our CRED form and "textfield" by the name of our field to be validated.
We also tried jQuery('#start-date').datepicker('option', 'minDate', new Date());
because it did not seem logical to have to specify the CRED form when pasting code beneath it.
Neither of these attempts worked. We really want this to work and we depend on Toolset.
If there are no built-in functions to do simple validations, at least it should be easy to implement a work-around.
Above custom codes is only an example, you will need to customize it according to your website site settings, if you need assistance for it, please provide a test site with the same problem, I can setup an example for you.
And as I mentioned above, There isn't such a built-in feature within Toolset form plugin, if you agree we can take it as a feature request, our developers will evaluate it.
Many thanks for this. It works like a charm when I use Firefox 60.1.0esr (64-bit).
However, it has no effect when I use 60.1.0 (64-bit) normal Firefox.
The difference between the ESR and the normal Firefox being that the ESR has wider support for NPAPI (technology required for Java-applets). However, clients of my client are unlikely to install the ESR version.
So could this be made to work for those using a normal version of Firefox?
Symptom: dates in the past are not grayed out in the datepicker when I use the normal Firefox.
Many thanks in advance.