- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Trying to Use a Boolean to Give the Option to hide a Button
SOLVEApr 10, 2018 12:45 PM
{% boolean "show_primary_cta_logo" label='Show Primary CTA?' value="true" no_wrapper=True, export_to_template_context=True %} {% if widget_data.show_primary_cta_logo.value == 'true' %}
|
{% endif %}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Accepted Solutions
Apr 10, 2018 1:27 PM
Just to be sure, check out the Developer Info
and see if "widget_data.show_primary_cta_logo.value" is the right "path".. In the past this often has been my problem, that sometimes for some reason the path is different like it's not value but body.value.. So best check the Developer Info.
https://designers.hubspot.com/docs/hubl/how-to-use-developer-info-on-cos-pages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content