Is there a way to have a read-only field that displays the number of days between two previously entered dates ?
TIA, Dave
Is there a way to have a read-only field that displays the number of days between two previously entered dates ?
TIA, Dave
I too have been looking hard for a simple answer to this question - so does anyone have a pre_submission function or other method for calculating the number of days between two selected dates ?
Thanks, Peter.
Did you see this post?
Yes - thanks, but how to you display the value of the #Days field after form displayed, but after date field values selected. i.e. but before submitting. Can the #Days field redraw - with the calculation based on the filter function ? (Pardon my lack of knowledge at this stage) Thanks.
Thank you I will look at that option - and the nice .js for this and other purposes.
But just to check I'm on the right track - the objective is to help make sure a form user has entered the correct booking information for accommodation, as people get confused about check-in/out dates versus quantity of nights they are booking.
So options would include a user selecting a reservation arrival date, and departure date - and the form then confirming the quantity of nights they are booking.
Alternatively they could select arrival date and quantity of nights they wish to stay, and the form would display the departure date.
Or am I missing something obvious - and there's a simpler/more common method used in a form for this sort of confirmation objective ?
I've already received good replies above which I can action - but just checking I'm not missing a simpler concept. Thanks.
Sound about right to me.