Answer the question
In order to leave comments, you need to log in
How to make date picker by user in Modx?
Tell me how to make a date selection by the user on the site. Now it stands like this: done through additional fields, and on the site you choose through the drop-down list of available dates. And I would like to make it so that on the site it would be possible to select the date according to the normal one, for example, as here https://eonasdan.github.io/bootstrap-datetimepicker/
That is, you click on the field, a calendar appears with a date picker and you can select date from the list of available (specified in the admin panel).
Using modx revo 2.5.1 shopkeepper
I would appreciate any hints, thanks in advance for your time!
Answer the question
In order to leave comments, you need to log in
So Bootstrap Datepicker is the way to solve your problem :)
In fact, you are creating a simple text field for the date. Datepicker is a plugin that you connect to the project and initialize when you click on the date field. You click on the field - a calendar appears.
The script that calls the datepicker can be placed next to the form, in the same chunk, for example. And transfer available dates to it. The documentation for Datepicker just has an example of Enabled / Disabled dates.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question