Set default date for date picker

Set default date for date picker

LimpEmuLimpEmu Posts: 64Questions: 18Answers: 1

For date fields I can set a default date through field('..').def(). However, I prefer to not have the date fields pre-populated, but only have the date picker be positioned on a default value.

For instance, if I have two dates, the admission date and discharge date, I would like the discharge date's date picker to be positioned on the admission date, but I do not want the discharge date to be pre-populated with the admission date.

Can this be done?

Thank you for your feedback.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin
    Answer ✓

    I fear not. That's not something I'd considered when creating the date time picker. The current date is highlighted (darker grey) - perhaps that could be styled to be a bit more obvious for your users?

    Thanks,
    Allan

  • LimpEmuLimpEmu Posts: 64Questions: 18Answers: 1

    It's all good, and the highlighting of the current day works just fine especially since I do not allow users to pick future dates.

    It's easy to select another year or month, I just have to make sure I teach the users.
    Thank you for your reply, always appreciated!

This discussion has been closed.