In a custom module, I have a HubDB Table field and a HubDB Row field and I want to change the HubDB Row table value with the value selected in the HubDB Table field.
I’m trying something like:
{% set module.myhubdb_row_field.table_id = module.myhubdb_table_field %}
But it doesn’t work.
I need this field in the module, so I can select some rows when setting up the module on any page. But the table of this row field must be different on some pages. I don’t want to create different modules for this because it would be repetitive and bad practice.
Hi Anton, thanks for your help. Unfortunately, it doesn’t work.
I don’t want to retrieve the rows from a table, but to change the HubDB table dynamically of a HubDB Row field.
For more context, I have this field:
I want that the row field (“Resource Name” field in the screenshot above) extracts data from that table too. But as you can see in the first screenshot, when you create a row field, you need to select a table, I just want to be able to change the source table dynamically.