avatar image
1
Pagebuilder: Refetch data on change of datepicker
By Created , last editted

Hi there,

I have a Page with a datepicker in it. It is a free date input, meaning no model is associated with it. 

What I want to do is the following: Based on the selected date of the datepicker I want to show timeslots (which are stored in data model). I can't get it to wordt with the Pagebuilder. 

I can't store the selected date to filter the list of time slots. I also tried to post the date using a form, trying to redirect to a following page with a input variable (text) that should fetch the selcted date and shoudl fetch the timeslot. 

Can someone point in the correct direction to implement this use case using the page builder?


Hi there,

I have a Page with a datepicker in it. It is a free date input, meaning no model is associated with it. 

What I want to do is the following: Based on the selected date of the datepicker I want to show timeslots (which are stored in data model). I can't get it to wordt with the Pagebuilder. 

I can't store the selected date to filter the list of time slots. I also tried to post the date using a form, trying to redirect to a following page with a input variable (text) that should fetch the selcted date and shoudl fetch the timeslot. 

Can someone point in the correct direction to implement this use case using the page builder?

  • Avatar image
    Can you tell me how the data model containing the time slots is set up? As in: How would the time slots relate to a date? Are they set up in DateTime fields? Or is there a Date field and 2 Time fields per time slot?
    By
  • Avatar image
    Model: Timeslots Property 1: Date (date) like 2021-12-03 Property 2: From (time) like 15:00 Property 3: Until (time) like 17:00 I select a date using the datepicker and then I click a button to redirect to page: timeslots-per-date (input variable: date) and I assign the value of the selected date from the datepicker to that input variable On the page timeslotes-per-date i have a datalist with the timeslots, filtered by the input variabke: date Does this make it more clear?
    By
  • Login to reply
Answers
Sort by:

Please login to reply to the topic.