CMS Development

Philip_Marsh
Contributor

If Statement - Form Selection - HubL

SOLVE
 
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
0 Upvotes
1 Accepted solution
Philip_Marsh
Solution
Contributor

If Statement - Form Selection - HubL

SOLVE

I managed to solve this by switching how I approached what I needed it to do.

 

I changed the multiselector to a checkbox and used that to switch out the modules. 

 

{% if dynamic_page_hubdb_row.form_cover_letter == '0' %}

View solution in original post

1 Reply 1
Philip_Marsh
Solution
Contributor

If Statement - Form Selection - HubL

SOLVE

I managed to solve this by switching how I approached what I needed it to do.

 

I changed the multiselector to a checkbox and used that to switch out the modules. 

 

{% if dynamic_page_hubdb_row.form_cover_letter == '0' %}