Tell us what you are trying to do?
I can't figure out how to output some Avada Page Builder code when a checkbox is "checked" and not output any code or text when "unchecked"
the code I want to output is this:
[fusion_builder_container hundred_percent="no" hundred_percent_height="no" hundred_percent_height_scroll="no" hundred_percent_height_center_content="yes" equal_height_columns="yes" menu_anchor="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="callback" background_color="#2f2f2f" background_image="" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" video_mp4="" video_webm="" video_ogv="" video_url="" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" video_preview_image="" border_size="" border_color="" border_style="solid" margin_top="" margin_bottom="" padding_top="20px" padding_right="" padding_bottom="0px" padding_left="" admin_toggled="no"][fusion_builder_row][fusion_builder_column type="2_3" layout="2_3" spacing="" center_content="yes" link="" target="_self" min_height="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" background_color="" background_image="" background_position="left top" undefined="" background_repeat="no-repeat" hover_type="none" border_size="0" border_color="" border_style="solid" border_position="all" padding_top="" padding_right="" padding_bottom="" padding_left="" margin_top="" margin_bottom="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" last="no"][fusion_text hide_pop_tinymce=""]
<h1>FREE Gutter Inspection Service</h1>
<div>Available in {!{types field='town-name'}!}{!{/types}!}, {!{types field='city-name'}!}{!{/types}!} <i class="fa fa-{!{types field='free-gutter-inspections' separator=''}!}{!{/types}!}"></div>
We will check if your gutters need cleaning or repairing absolutley free!
No call out charge, no obligation, simple.[/fusion_text][/fusion_builder_column][fusion_builder_column type="1_3" layout="1_3" spacing="" center_content="yes" link="" target="_self" min_height="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="callback" background_color="" background_image="" background_position="left top" undefined="" background_repeat="no-repeat" hover_type="none" border_size="0" border_color="" border_style="solid" border_position="all" padding_top="" padding_right="" padding_bottom="" padding_left="" margin_top="6px" margin_bottom="40" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" last="no"][fusion_text][contact-form-7 id="20432" title="Main Contact Free Inspection"][/fusion_text][/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]
Please could you help.
Regards,
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Martin,
Thank you for contacting our support forum.
What you can try is to use our conditional shortcode to do this.
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/
However I cannot say if this will work as intended as the pagebuilder's shortcode are quite complex and could cause unforseen issue.
Please let me know if this helps.
Thanks,
Shane