Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Datetime-Local - not displayed after saving Topic is solved
-
- Posts: 33
- Joined: Sat Jun 09, 2018 4:36 pm
- Location: Netherlands
- Has thanked: 4 times
- Been thanked: 1 time
- Contact:
Re: Datetime-Local - not displayed after saving
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));
}
}
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));
}
}
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 447 times
- Contact:
Re: Datetime-Local - not displayed after saving
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.
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.
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.
You do not have the required permissions to view the files attached to this post.