We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Jan 18, 2022 7:08 AM
Hello
I have a problem, in my template I'm filtering data from HB database
{% for row in hubdb_table_rows(module.hubdbtable_field, queryparam) %}
As queryparam: "&services__contains=digital&limit=2&orderBy=-date"
but it doesn't work.
This is what this column looks like in database, so all names are correct.
Why the queryparam doesn't filter by the services column? Is this a bad syntax?
Jan 19, 2022 1:19 PM
Hi @JZielińska ,
Could you try one of the following solutions:
{% for row in hubdb_table_rows(module.hubdbtable_field, "services__contains=Digital&limit=2&orderBy=-date") %}
So remove the first &, and double check if you need to capitalize 'Digital'
or:
{% set rows = hubdb_table_rows(module.hubdbtable_field) %}
{% set digital_rows = rows|selectattr('services','contains','Digital') %}