Page 2 of 2
Re: Datetime-Local - not displayed after saving
Posted: Wed Oct 10, 2018 11:15 pm
by admin
.
Re: Datetime-Local - not displayed after saving
Posted: Tue Sep 17, 2019 9:28 am
by Jannie
I still have this issue with NuBuilder Forte May 2019 when using Dutch date-time DD-MM-YYYY HH:II (example 31-12-2019 12:30)
Databasevalue is correct but date/time are not displayed after saving.
In form.js I see:
if(input_type != 'file'){
if(input_type == 'button'){
$('#' + id).val(nuTranslate(w.objects.value))
}else{
if(input_type == 'datetime-local'){ //-- replace ' ' between date and time with 'T'
w.objects.value = w.objects.value.replace(' ','T');
}
$('#' + id).val(nuFORM.addFormatting(w.objects.value, w.objects.format));
}
}
Re: Datetime-Local - not displayed after saving
Posted: Sun Sep 22, 2019 10:24 am
by kev1n
Jannie, Datetime-Local doesn't work for me either. If I use it, not all objects are displayed after saving and there is a JavaScript error.
Code: Select all
nuform.js?ts=20180827110947:658 Uncaught TypeError: Cannot read property 'replace' of null
at nuINPUT (nuform.js?ts=20180827110947:658)
at nuBuildEditObjects (nuform.js?ts=20180827110947:386)
at nuBuildForm (nuform.js?ts=20180827110947:113)
at successCallback (nuajax.js?ts=20180823213405:110)
at Object.success (nuajax.js?ts=20180823213405:15)
at u (jquery.js?ts=20180210113755:2)
at Object.fireWith [as resolveWith] (jquery.js?ts=20180210113755:2)
at k (jquery.js?ts=20180210113755:2)
at XMLHttpRequest.<anonymous> (jquery.js?ts=20180210113755:2)
Therefore, I would advise against using this format. I think it has only been tested with an English format and not with other country settings.
Re: Datetime-Local - not displayed after saving
Posted: Thu Oct 24, 2019 4:20 pm
by Timo
Did someone figure out how to make this work
