Join the Webstudio community

Updated 2 months ago

Show expects a boolean value

At a glance

A community member created a simple formula in Airtable to show either true or false, but encountered an error when trying to bind this field to the "Show" setting, as it expects a boolean value. The community members discussed this issue, noting that even though the value is displayed without quotation marks in Airtable, the expression editor adds them back, which needs to be addressed. The solution suggested is to compare the field with the string "true" instead of just using the true/false value directly.

I've created a simple formula in Airtable to show either true or false.
I was hoping to bind this field to Settings>Show, but it's giving me an error Show expects a boolean value. I would think that true or false is a boolean value, but maybe I'm wrong.
Attachments
image.png
image.png
R
B
7 comments
I noticed the catch. Even though in Airtable it's without quotation marks, in the expression editor I can see it adds those again. I'll need to figure out how to remove those.
Attachment
image.png
Just compare with "true"
It's giving me that red + circle icon error that doesn't allow me to do it with "true"
I mean ...fields.Visibility === "true"
That works like a charm 😁 😎
I've edited the docs on github and send a commit to update the docs. I hope that can be helpful for others as well.
Add a reply
Sign up and join the conversation on Discord