I have 2 forms, a HubDB and a dynamically generating page. I have a column in HubDB (multi-select) set up so I can select which form I want to appear on the page (default/form2). I want the dynamic page to pull in whichever form I choose. I have 2 custom modules, each with a different form in set up.
I thought an IF statement might work, but it doesn't. To me, the theory behind the code should work, but it doesn't.
{% if dynamic_page_hubdb_row.form_selection.name == 'default' %}
I have used {{ dynamic_page_hubdb_row.form_selection|pprint }} to find out if I need to use Name, ID or Value to define the operator, but neither of them works. Am I missing something really obvious?
Only the else portion of the IF statement ever shows. I can't get the name == 'default' section to work