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:
Now I get the following error whenever I change the start-date:
Out of curiosity I checked the content of the field, with this result:
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
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:
Out of curiosity I checked the content of the field, with this result:
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