I am trying to: Conditionally show text depending on the value of an option of a multi checkbox field.
The solution of this ticket is working: https://toolset.com/forums/topic/conditional-display-depending-on-checkbox-2/ :
[wpv-conditional if="( '[types field='havervlokken' option='2'][/types]' eq '3' )"]
TEST STRING 1
[/wpv-conditional]
but I don't know how to handle the option= in this code generated within the Divi builder :
{!{wpv-conditional if="( $(wpcf-havervlokken) eq '3' )"}!}
TEST STRING 2
{!{/wpv-conditional}!}
I tried to place it in several postions, but without luck.
Hi there,
Thank you for contacting us and I'll be happy to assist.
When using the Toolset shortcodes inside the Divi builder, you can replace all opening brackets of shortcodes from "[" to "{!{" and the closing ones from "]" to "}!}".
For example, if this conditional block is working as expected, outside the Divi builder:
[wpv-conditional if="( '[types field='havervlokken' option='2'][/types]' eq '3' )"]
TEST STRING 1
[/wpv-conditional]
Inside the builder, you can update it to:
{!{wpv-conditional if="( '{!{types field='havervlokken' option='2'}!}{!{/types}!}' eq '3' )"}!}
TEST STRING 1
{!{/wpv-conditional}!}
I hope this helps.
regards,
Waqar
My issue is resolved now. Thank you!