Date Popup Restrictions
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
About this module
This module allow to add day select restrictions in the date_popup widget from
the date moduel that could be displayed as custom form widget, in a entity
with date field or as a exposed filter in a view. The approach to restrict the
selectable days is done used a view display that is used as a data source of
dates that we are interested to allow selectable in our widget. Other days not
returned by this view will be unselectable.
How to install
- Enable this module as usual
- Create a view with the filter criteria that satisfy your logic for the
allowed selectable dates, this view display must return a datetime field with
all the dates that you want to make selectable.
- Configure the data source view for the date popup restrictions at
admin/settings/date_popup_restrict and select the previous created view and
display.
- Done. Test at any form that display a date_popup widget and will allow to
select only the dates retrived by your view.
