Dynamically populate date based on time.

By: Jim Bynum | Asked: 11/25/2022
ForumsCategory: How-toDynamically populate date based on time.
Jim BynumJim Bynum asked 1 year ago
I am building a transportation booking form, but I need to enter a pickup and drop-off date, but don't want to rely on the user to select the correct drop-off date. I want them to be able to select a pickup date and time, and then select a drop-off time. If that drop-off time is before midnight I want to populate the hidden drop-off date with the same pickup date, but if that drop-off time is on or after midnight populate the next day as the drop-off date. Is this a possibility?
1 Answers
Rob LeVineRob LeVine answered 1 year ago
Sounds like a jQuery solution is necessary.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right