Filtering HubDB elements with HTML Checkboxes - follow up
SOLVE
Hi there, I would recommend that you use Hubl to filter the db and set it to a js variable inside of a script tag. then use your js section to work with it. using react you can pull that data using window.VAR
If this post helped you resolve your issue, please consider marking it as the solution. Thank you for supporting our HubSpot community.
So i've got a rather ellegant (if i do say so myself) solution for multiple checkbox filter with hubDB. But to be honest I'm not decided on releasing it as a paid article or free… shoot me a DM maybe we can work something out.
But anyway I can give you a few pointers.
I would get, build, and submit the URL with JS/jQuery on the front end. I always feel more comforable in JS over hubl/jinja.
So i've got a rather ellegant (if i do say so myself) solution for multiple checkbox filter with hubDB. But to be honest I'm not decided on releasing it as a paid article or free… shoot me a DM maybe we can work something out.
But anyway I can give you a few pointers.
I would get, build, and submit the URL with JS/jQuery on the front end. I always feel more comforable in JS over hubl/jinja.
Filtering HubDB elements with HTML Checkboxes - follow up
SOLVE
Hi there, I would recommend that you use Hubl to filter the db and set it to a js variable inside of a script tag. then use your js section to work with it. using react you can pull that data using window.VAR
If this post helped you resolve your issue, please consider marking it as the solution. Thank you for supporting our HubSpot community.
Filtering HubDB elements with HTML Checkboxes - follow up
SOLVE
Hi @sharonlicari thanks for giving a thought and calling @Kevin-C and @prosa on this. For the records, since i found still challenging building the actual query to send as a get request, I ended up displaying the whole HubDB table at the beginning, and then working in JS/jQuery to hide and show results, so no queries each time the 2 filters are combined.