Hello,
Thanks for your message. The search form widget/block does not accept default values for the check-in and check-out dates, especially because if there were any, these should be validated through the apposite JavaScript functions to ensure the dates are allowed. In fact, some dates can be disabled in the date-picker calendar at runtime, either due to restriction rules, or because of some global closing dates defined in the configuration settings of VikBooking.
The only solution in this case is to create an override for the template file of the widget/block. You can use the “Overrides Manager” (available in the configuration page of VikBooking) to add your default and pre-selected dates directly inside the value attribute of the input fields. As long as you are confident the forced default dates will be valid, this modification through an override should be sufficient.
We hope this helps!
The VikWP Team
Thread Starter
ghong
(@ghong)
Ok, I will try to make an override for the template file of the widget/block.
Thank you.