Hello, as you will see in the image, every time I add a new record to a sub form, all the date fields are cleared, although their default value is the current date, they are all reset.
Even those of the main form
I have alerted the dev about the issue.
Ok, excellent we will be reviewing the other functions and I will be telling you as a tester hehe
1 Like
Hello,
same issue in RadSystemsEdition 7.1.2.
I solved this issue by temporarily post-manipulating the generated page-scripts.js on line 1137. Seems that flatpickr’s option defaultDate wasn’t set.
var defaultDate = new Date();
$('.datepicker').flatpickr({
altInput: true,
allowInput:true,
defaultDate: defaultDate,
onReady: function(dateObj, dateStr, instance) {
var $cal = $(instance.calendarContainer);
if ($cal.find('.flatpickr-clear').length < 1) {
$cal.append('<button class="btn btn-light my-2 flatpickr-clear">Clear</button>');
$cal.find('.flatpickr-clear').on('click', function() {
instance.clear();
instance.close();
});
}
},
locale: {
rangeSeparator: '-to-'
}
});
'til the bugfix will be there. ![]()
