View Issue Details

This bug affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
16828Bug reportsSurvey takingpublic2020-11-11 21:04
Reportergabrieljenik Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version3.24.6 
Summary16828: Datepicker is suggesting current date/time after clearing and setting focus back
Description

On date questions with a default date/time, when taking the survey:

  • After clearing the default vale with the trash icon
  • Going back to the input to set a date/time
  • The input is prefilled with the current date/time, whereas the default date/time is expected.
Additional Information

In order to move forward I edited the following on my installation:
/application/views/survey/questions/answer/date/selector/answer.twig
'defaultDate': "2000-01-01 00:00",
'useCurrent': false

The date picker is kind of old, so not sure what's the best.
Initially, at least, I think that if a default date is set on LS, the 2 lines above should be used. If not, leave everything as it is now.

It is also to highlight, that when manually removing the value from the input, the datepicker itself is not reset/ sync.
When the picker is displayed, the pickers are set to the current date/time. Some kind of sync back from the field to the picker is missing.

TagsNo tags attached.
Bug heat0
Complete LimeSurvey version number (& build)3.24.6
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMysql
Server OS (if known)
Webserver software & version (if known)
PHP Versionphp

Users monitoring this issue

There are no users monitoring this issue.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-11-11 21:04 gabrieljenik New Issue