Now in v.1.8.4 to make the condition work again, I have to change the condition to this (without the :value and with True / False spelled out instead of simply 1 / 0):
Hi, thanks for the reply. I tried every option to call the true/false field:
{field}
{echo:field}
{field:value}
I have found, that only {field} works. However, it returns the True/False translated to site language which is strange, but why not.
I expect {field:value} return 0 or 1 because what if customer change the site language when using {field} in Bricks? It stop working then because it will need to translate the True/False in condition again?
Hi Ales, {field:value} works fine in my test and returns either 0 or 1. I can’t give you a general answer as to why this is not the case for you.
Would you be so kind as to send temporary login credentials, information on where the true false field is located, and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase?
Hey Ales,
I have checked with the developers. Let me summarize:
{acf_truefalse_field} returns the label that is either True or False, and yes, the labels get localized (translated) when changing the WP language. That’s why it’s not a good idea to use the label within conditions. We have just updated the Academy accordingly: Dynamic Data – Bricks Academy
{acf_truefalse_field:value} returns 1 if true, nothing/empty if false on the canvas/front end - and that’s where it gets confusing, but that’s the way PHP works in this case. You will get the same result if you output the field with the_field('acf_truefalse_field') in pure PHP (in a code block).
However, you can still (and should) compare within conditions against 1 or 0 (see link above).
PS: Have you sent us access data yet? As far as I can see, nothing has arrived yet - or ended up in spam.
Hello, I did not yet I have big troubles after updating Automatic.css on my websites so I am working on them. However I used PHP to be sure that condition will work, same as you mentioned and its fine for me. Thanks!
We’ve added some improvements in Bricks 1.9.9 beta, now available as a manual download in your account (see changelog), which should prevent the problem.
Please let us know if you are still experiencing issues.
As with any beta release, please do not use it on a production/live website. It is only meant for testing in a local or staging environment.