Skip Navigation

[Resolved] display checkbox value by condition

This support ticket is created 5 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 1 reply, has 1 voice.

Last updated by Akhil 5 years, 11 months ago.

Assisted by: Waqar.

Author
Posts
#1165312

Hi. i need to display 3 values from the checkbox fields.

[wpv-conditional if="( $(wpcf-promo-type) eq 'New Discount ')"] 
  <div class="base"><span> New Discount!</span></div>
[/wpv-conditional]
   
   [wpv-conditional if="( $(wpcf-promo-type) eq 'Preview Discount')"] 
  <div class="red"><span> Preview Discount</span></div>
[/wpv-conditional]
   
   [wpv-conditional if="( $(wpcf-promo-type) eq 'Early Discount ' )"] 
  <div class="yellow"><span> Early Discount</span></div>
[/wpv-conditional]

it displays/processes only the first one, not the subsequent. whats the issue pls.

Thanks.

#1165313