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,
I am sure there must be a simple answer to this but I can't see to find it..
I am trying to create a booking system that will only ever have events that start and end on the same date.. They will often be repeated but will never roll overnight.. Entering an end "date" seems redundant for the users because they have just entered the date already..
Is there an easy way to hide the "end date" fields so the user simply enters date, start time, end time and any repeat criteria?
Thanks..
Comments
Comment #1
arlinsandbulte CreditAttribution: arlinsandbulte commentedYou might be able to just hide the To Date part with some css or hook_form_alter, but I have not tried it.
If no date is entered for the To Date, it should just use the same date as the from date.
Comment #2
calefilm CreditAttribution: calefilm commentedThis is my precise problem as a result of Date Single Day module not porting to D7. Maintainer has no desire to port it: http://drupal.org/node/1130490
The problem is I don't want users to select a To Date..... however, I would like them to select a To Time... (using FullCalendar so need the Event Date to display between 5AM - 9AM on Monday only).
Comment #3
wipeout_dude CreditAttribution: wipeout_dude commentedHmmm.. That's unfortunate.. A single day date input form would be very useful in any number of applications.. Having to enter the same date twice is pretty "clunky".. Times like this I wish I could code.. :)
Comment #4
calefilm CreditAttribution: calefilm commentedDid any commenter above ever resolve this issue somehow?
Comment #5
MrPeanut CreditAttribution: MrPeanut commentedDate single day (now with 7.x!) does accomplish this outside of the Date module.