Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi all,
I use a webform to let people subscribe to a weekly diner on Fridays.
How can I change the date filed to only allow Fridays to be selected?
Comments
Comment #1
Snehal Brahmbhatt CreditAttribution: Snehal Brahmbhatt at AddWeb Solution Pvt. Ltd. commentedYou can use "Work Calendar" module with "Date" module for your purpose.
Here's the Module URL :- https://www.drupal.org/project/work_calendar
Hope this helps you Tsjippy.
Feel free to contact me if you face any query/concern.
Thanks!
Comment #2
Tsjippy CreditAttribution: Tsjippy as a volunteer commentedyes that does the trick, but not for webform.
How can I integrate it with webform?
Comment #3
DanChadwick CreditAttribution: DanChadwick commentedThis isn't something that webform supports, nor is it something that I foresee it supporting. That said, if there are hooks or API's that would allow this that don't exist, I'm open to facilitating a custom developer implementing this.
I believe the date picker supports flexible disabling of dates and days of the week. That said, we also have the three pop-up menus. Disabling the days of the month that are Fridays on the given month and year would not be so easy.
Good luck.