Hello folks! π
Could you guide me on how to refresh the options of a drop down menu based on the selections of two other fields?
Iβm building a form where a user can book a resource. The user is required to (step1) select a resource (dropdown menu) and (step2) select a date (date picker). I would like a third dropdown menu (step3) to display automatically available hours based on the resource and the date selected.
Using the online documentation, I have currently built and populated a sql table(resource, date, hour, status) where status column indicates if the room is available and built a double drop-down using dynamic options (db read + ajax event).The available hours dropdown menu (step3) is currently automatically refreshed when the user select/change a resource (step1) but doesn't take into account the date picker field (step2) to filter the available hours from the sql table and load them as options in the available hours dropdown menu.
Any suggestion to make this happen?
Thank you in advance ! π
Could you guide me on how to refresh the options of a drop down menu based on the selections of two other fields?
Iβm building a form where a user can book a resource. The user is required to (step1) select a resource (dropdown menu) and (step2) select a date (date picker). I would like a third dropdown menu (step3) to display automatically available hours based on the resource and the date selected.
Using the online documentation, I have currently built and populated a sql table(resource, date, hour, status) where status column indicates if the room is available and built a double drop-down using dynamic options (db read + ajax event).The available hours dropdown menu (step3) is currently automatically refreshed when the user select/change a resource (step1) but doesn't take into account the date picker field (step2) to filter the available hours from the sql table and load them as options in the available hours dropdown menu.
Any suggestion to make this happen?
Thank you in advance ! π
