- Code: Select all
<div class="col-md-12 tff-cuzt-col">
<cms:pages masterpage='products.php' page_name="<cms:show k_page_name />">
<cms:set my_buffer='0''global'/>
<cms:capture into='my_buffer'>
<cms:fieldset label='Customization' class='tff-checkbox'>
<cms:input type="checkbox"
name="customize_items"
label='Select the items you wish'
opt_values="<cms:show_repeatable 'customize' startcount='0'> | <cms:show desc_headin />:
<cms:show desc_item /><cms:set my_buffer='1''global'/></cms:show_repeatable>"/>
</cms:fieldset>
</cms:capture>
<cms:if my_buffer>
<cms:fieldset label='Customization' class='tff-checkbox'>
<cms:input type="checkbox"
name="customize_items"
label='Select the items you wish'
opt_values="<cms:show_repeatable 'customize' startcount='0'> | <cms:show desc_headin />:
<cms:show desc_item /></cms:show_repeatable>"/>
</cms:fieldset>
</cms:if>
</cms:pages>
</div>
I've been trying to hide the whole fieldset if there is not value in the reapetable desc_item... This code works but fieldset still shows even when the desc_item value is empty in some cloned pages.
products.php has cloned pages. each page has a repeatable field which has desc_heading and desc_item. I dont want to show the fieldset if there is no value added to the input desc_item.
What am I doing wrong here?