Title: Problem with conditional tags layout
Last modified: October 30, 2020

---

# Problem with conditional tags layout

 *  Resolved [Mastafu Design](https://wordpress.org/support/users/mastafu/)
 * (@mastafu)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/problem-with-conditional-tags-layout/)
 * Hi,
 * I did numerous test with conditional tags and these are mine conclusions.
 * This works(but produces extra line in td so its not aligned with title in aside
   td.
    <td> [udzialtak][udzial] zł[/udzialtak] [udzialnie]Nie wybrano[/udzialnie]
   </td>
 * This doesn’t work, why (email comes with empty td cells)?
    [udzialtak][udzial]
   zł[/udzialtak][udzialnie]Nie wybrano[/udzialnie] or [udzialtak] [udzial] zł[/
   udzialtak] [udzialnie] Nie wybrano [/udzialnie]

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/problem-with-conditional-tags-layout/#post-13615617)
 * Have you tried:
    `<td>[udzialtak][udzial] zł[/udzialtak] [udzialnie]Nie wybrano[/
   udzialnie] </td>`
 *  Thread Starter [Mastafu Design](https://wordpress.org/support/users/mastafu/)
 * (@mastafu)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/problem-with-conditional-tags-layout/#post-13729893)
 * Hi,
 * No this doesn’t work either.
    I just lost 1.5h trying different scenarios to 
   make it work like it should.
 * My setup is.
 * Show value from input
    show [dbkaskotak] if [dbkasko] not equals “DBKasko” show[
   telematykatak] if [telematyka] not equals “Telematyka”
 * Show Not chosen text
    show [dbkaskonie] if [dbkasko] equals “DBKasko” show [telematykanie]
   if [telematyka] equals “Telematyka”
 * Without this Not chosen text is not being displayed, instead empty space with
   no text is.
    show [dbkaskonie] if [dbkasko] equals “” show [telematykanie] if[
   telematyka] equals “”
 * This should show Not chosen, but shows fixed price all the time.
    show [udzialtak]
   if [dbkasko] not equals “DBKasko”
 * This shows fixed price
    show [udzialnie] if [dbkasko] equals “DBKasko”
 * So basically I can’t condition 2 groups with 1 cf7 field, why ?
 *  Thread Starter [Mastafu Design](https://wordpress.org/support/users/mastafu/)
 * (@mastafu)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/problem-with-conditional-tags-layout/#post-13729910)
 * And there is another issue.
 * Why I can’t hide /show whole section with tr / td.
    It still shows td with title,
   and leavese empty value TD.
 *     ```
       [dbkaskotak]
       <tr style="width: 100%">
       	<td style="padding: 5px; width: 200px;  border-bottom: 1px solid #efe7e7;">DBKasko: </td>
       	<td style="padding: 5px; border-bottom: 1px solid #efe7e7;">
       	<b style="color: #f7941e">
       		[dbkasko] zł
       	</b>
       	</td>
       </tr>
       [/dbkaskotak]
       [telematykatak]
       <tr style="width: 100%">
       	<td style="padding: 5px; width: 200px;  border-bottom: 1px solid #efe7e7;">Telematyka: </td>
       	<td style="padding: 5px; border-bottom: 1px solid #efe7e7;">
       	<b style="color: #f7941e">
       		[telematyka] zł
       	</b>
       	</td>
       </tr>
       [/telematykatak]
       [udzialtak]
       <tr style="width: 100%">
       	<td style="padding: 5px; width: 200px;  border-bottom: 1px solid #efe7e7;">Udział własny w szkodzie: </td>
       	<td style="padding: 5px; border-bottom: 1px solid #efe7e7;">
       	<b style="color: #f7941e">
       		5000 zł
       	</b>
       	</td>
       </tr>
       [/udzialtak]
       ```
   
    -  This reply was modified 5 years, 6 months ago by [Mastafu Design](https://wordpress.org/support/users/mastafu/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problem with conditional tags layout’ is closed to new replies.

 * ![](https://ps.w.org/cf7-conditional-fields/assets/icon-256x256.png?rev=2072595)
 * [Conditional Fields for Contact Form 7](https://wordpress.org/plugins/cf7-conditional-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-conditional-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-conditional-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-conditional-fields/reviews/)

## Tags

 * [not working](https://wordpress.org/support/topic-tag/not-working/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mastafu Design](https://wordpress.org/support/users/mastafu/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/problem-with-conditional-tags-layout/#post-13729910)
 * Status: resolved