Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Well, I open another thread, because I have another question with forms:

I use the
Code: Select all
<cms:each k_success sep='\n'>
            <cms:show item /><br>
        </cms:each>


but I would like to exclude the fields that are not selected or empty...how could I achieve that?
and how to do that if I call singular form values, like
Code: Select all
 cms:show frm_name
, since that is better for styling for me

thanks in advance

tanja
Hi,

I already replied to your original post :)
Here is a copy -

You can use cms:not_empty tag to test if a variable has any content before outputting it e.g.
Code: Select all
<cms:each k_success sep='\n'>
   <cms:if "<cms:not_empty item />" >
      <cms:show item /><br>
   </cms:if>
</cms:each>


If you are using single values, you'll have to test each variable individually before printing it out e.g.
Code: Select all
<cms:if "<cms:not_empty frm_name />" >
  <cms:show frm_name /><br>
</cms:if>

<cms:if "<cms:not_empty frm_address />" >
  <cms:show frm_address /><br>
</cms:if>


Hope this helps
thanks a lot KK !!!!!!!!!!


tanja
3 posts Page 1 of 1