Datetime-Local - not displayed after saving

Questions related to using nuBuilder Forte.

Re: Datetime-Local - not displayed after saving

Postby admin » Thu Oct 11, 2018 6:45 am

.
admin
Site Admin
 
Posts: 3132
Joined: Mon Jun 15, 2009 9:53 am

Re: Datetime-Local - not displayed after saving

Postby Jannie » Tue Sep 17, 2019 4:58 pm

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[i].value))
}else{

if(input_type == 'datetime-local'){ //-- replace ' ' between date and time with 'T'
w.objects[i].value = w.objects[i].value.replace(' ','T');
}

$('#' + id).val(nuFORM.addFormatting(w.objects[i].value, w.objects[i].format));
}

}
Jannie
 
Posts: 2
Joined: Sun Jun 10, 2018 12:06 am

Re: Datetime-Local - not displayed after saving

Postby kev1n » Sun Sep 22, 2019 5:54 pm

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.
Attachments
dtlocal.png
dtlocal.png (9.11 KiB) Viewed 47 times
kev1n
 
Posts: 266
Joined: Mon Oct 15, 2018 2:13 am

Previous

Return to General



cron