Hi all,
I'm trying to upgrade a form from the Classic Editor to the new form designer available in Forms 11. In the old form, there is some JavaScript (well, jQuery) that disables certain dates on a Date field. It's definitely based on this answer: https://answers.laserfiche.com/questions/170752/Ability-to-restrict-dates-in-forms#171323
Here's what it looks like in the old form:
Only every other Monday should be available. This worked by directly targeting the element and editing it in the UI from there.
I understand the differences in JavaScript between the Classic and new forms designer. It doesn't use jQuery and you can only access field elements by the LFForms interface. Indeed I am able to target this field in the new version of the form with:
LFForm.findFieldsByVariableName("Effective_Date");
There are a lot of data and methods available on this object covered here. I am able to change the value of the field, change field settings, add event listeners, etc.
But I'm still not sure how to achieve the same effect, that is, disabling certain (or any) dates on the calendar that pops up with the datepicker.
Does anyone have any experience with this?