I have created a custom form that handles reservations for a website I'm building. The problem is that the reservation date is chosen from another page (in a widget) before filling in the actual reservation form (custom form).
What would be the best way to get the selected date (from my widget on other page) in the reservation form (custom form)?
Areas I have looked into are:
- Use the ContentPartDriver's Editor method of the Custom Form and in that method access the workercontext to extract the values from the query string
- Check how the Pager is doing it. But that all works from ViewModels and my custom form isn't called from a ViewModel.
If anyone could point me in the right direction that would be very welcome. Options 1 and 2 might work but I dislike doing it that way.