You are viewing limited content. For full access, please sign in.

Question

Question

New Forms Designer - Blackout dates in Date Picker

asked on February 8, 2023

Javascript for the Classic Form Designer is available to only allow certain dates in a Date Picker/Calendar field.

The New Forms Designer from Laserfiche 11 update 3 now has a Javascript button, however due to the newness of this feature I am unable to find any current solution to limiting dates in a Date Picker field

 

My goal is to pull a list of dates from a database to populate a hidden Drop-down list. This list will be used to limit what dates can be selected in the Date Picker/Calendar field.

 

I am going over the Admin Guide: JavaScript in the Forms Designer, but I'm not sure I can put it all together into a working solution. 

2023-02-2023-02-forms_blackout_dates_js_question.png ‎- Photos-08-08-39-02.png - Greensh-08-08-40-58.png
0 0

Answer

SELECTED ANSWER
replied on February 8, 2023 Show version history

Unfortunately, I don't think this is going to be possible in the Modern Designer.

The Javascript in the Modern Designer runs within a sandboxed iFrame, so it cannot directly access or modify components of the form or window.  The only options available are those within the LFForm object.

The Modern Designer is great at certain things, it has more options for Field Rules, and the structure lends itself to different size browsers with less effort.  But with something needing really custom Javascript like this, you're going to be better off sticking with the Classic Designer.  It's a matter of balancing between the two designers based on particular needs for individual forms.

Sorry.

2 0
replied on February 8, 2023

I understand. Thank you for taking a look at this.

1 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.