Adalo Toggle & Xano Boolean fields

How to use Adalo Toggle component with Xano Boolean fields?

I tried various workaround and the issue is when turning the Adalo Toggle to false, the input value in the json file is null, hence Xano cant convert the field to false, but keeps the it to true.

Any tips ?

Well I think it is for Adalo to fix, because this is a shortcoming in the integration, the toggle, switch component and adalo form, should send “false” if that is what Xano requires.

There is a long solution in Conditional Set Filters - YouTube but I don’t think you can call this an ‘integration’ if out the box components don’t work.

Raise a support ticket with your request, I will do the same. Also add it to the roadmap where I and others will upvote it.

Having tried this myself I find that the null values are interpreted as false. So it would appear for me that the toggle, switch and form components can operate a boolean with a true or null payload. So Adalo DOES work in this sense.

Perhaps your problem comes from the fact that Xano expects a full request.
So when you are updating one value alone it is wiping all others.

In the ‘Learn more’ section, point 3.

thanks @Rozza for your responses

Indeed I tried a couple of things

  • You can use Conditional Set Filters with Xano, but with that in place when the boolean is true it can not go back to false
  • So, the workaround is to follow that loom from Xano Support on conditionally update booleans, using if else conditions:
    Loom | Free Screen & Video Recording Software | Loom

The issue I am facing is that I have in my database multiple boolean fields, and following this tutorials I am starting to build a complicated endpoint in Xano for a simple need (frustrating). So maybe it is a Xano issue rather then an Adalo one.

I will keep trying to find a simple solution to update my multiple boolean fields and keep you posted

So what would be the solution for this?

How can we toggle a list entry without deleting everything on Xano?