• Payment Plugins Poll

    We need your feedback on the need for updated payment plugins. Please go here and give us your feedback.

  • Joomla 5.1

    For running J!5.1 you must install Fabrik 4.1
    See also Announcements

  • Subscription and download (Fabrik 4.1 for J!4.2+ and J!5.1) are working now

    See Announcement
    Please post subscription questions and issues here

    We have resolved the issue with the J! updater and this will be fixed in the next release.

Date Elements Allow Dates JS

joomlamate

Member
I have 2 date element fields - start/end Date.

I am trying to use the JS Allow Dates so to restrict Min/Max dates when a date is selected in any of these fields.

Is there any way to catch the Date Selection of the other date field inside the field that has to be adjusted on its allowed dates?

What event could be used for this?
 
Yeah, you should be able to get the other element's value with ...

Code:
var otherDate = Fabrik.getBlock('form_X').formElements.get('yourtable___otherdate').getValue();

Replace X with your numeric form ID, and yourtable___otherdate with the full element name of ... well, the other date.

Actually, you might be able to use this.form instead of Fabrik.getBlock('form_X').

-- hugh
 
Back
Top