Possible bug with date / time picker-element

DHMG

New Member
Hello Community,

I have 2 Date-elements, with the time-select option enabled.
One date is the start date/time, the other is the end date/time.

I wanted the end-time to always be on the same day, so I made a JS OnChange script in the start-element like this:

JavaScript:
var from = Fabrik.getBlock('form_1').formElements.get('fabrikdata_lagerbox_mieten___ls_von');
var to = Fabrik.getBlock('form_1').formElements.get('fabrikdata_lagerbox_mieten___ls_bis');

/*alert(von.getValue);*/
to.update(from.getValue);

Now I get the following error whenever I change the start-date:
346qky2y.jpg


Out of curiosity I checked the content of the field, with this result:
sb4poiyd.jpg


Am I doing something wrong or is there a better way to go about this task? Maybe with the AllowDate-section in the element?

Cheers,
Mario
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top