Feb 19, 20199:29 AM - edited Feb 20, 20191:36 AM
Participant
HubDB Row Filter based on HTML Form
Hi,
I am trying to create an Event Listing Page with Filters where you can filter Events by 'Month', 'Location', 'Event Category', and 'Event Type'. (screenshot)
In HubDB, Columns are Event Name, Start Date, End Date, Location, Event Cat, and Event Type.
The Filter Form is an HTML Form, I have seen the Real Estate example on HubSpot, but I am not able to make it work in my scenario, not a single filter.
Upon a change in select fields, the URL is updating properly
So, I need help in getting the Month filter to work. If say, February is selected in select, the table should return all events in the Month of February.
I using the zero-padded decimal as values for the month filter and upon slection, the URL will show the selected value, but I am not able to filter the query rows based on the number of the month, eg. 01 - January
@praveen the clear filters button should just be a link to the page without any query parameters. Then use a button class to style it to look like a button. That way when it's clicked it refreshes the page without any parameters rather than submitting the form with empty parameters.