Checkbox value not sending in POST request to Xano

  • sally_51110-1372008640365461665

    Salutina

    4 days ago

    Hey everyone! I’m new to Toddle and could use some help with an issue I’m having sending a checkbox input to Xano via a POST API. Everything else in my form is working fine — all other inputs are passing through to Xano — except for the checkbox. I’ve tried a bunch of things, but can’t seem to get it to work. Here’s what’s happening: If I manually update the initial value of the checkbox variable (e.g. in the variable panel) and run the API, it works — the value is sent to Xano correctly. But when I use the actual checkbox input in the form and check/uncheck it, the value doesn't get passed through to Xano. Sometimes the value becomes undefined or gets sent as a string instead of a boolean.

    I've added photos of my set-up. Any help would be so appreciated!
    1372008645516202014-Input_attribute.png
    1372008646975684639-Variable_.png
    1372008647650971728-API-Body.png
    1372008648339095602-Form_submit_event.png
    1372008648728907776-Input_event.png
    1372008648024526918-Form_submit_success_event.png
  • paspom-1372104095569149973

    Pascal

    3 days ago

    hey, the event value might not give you the value you wished for – mind you flipping the boolean with a "not" formula?
    1372104095447646248-Bildschirmfoto_2025-05-14_um_08.49.24.png
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
    💯1
    👍1
  • sally_51110-1372746730847600763

    Salutina

    1 day ago

    That seemed to work! Thank you!!
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
    👍1
  • sally_51110-1372844867033632800

    Salutina

    1 day ago

    Hey @Pascal - I have another related question for you. I'm now trying to calculate whether someone is over 18 based on their date of birth and send that as a boolean value (over_18) in my API request. I’m not sure what I’m doing wrong (probably a few things haha), but this is the setup in the body of the API.
    1372844867108995143-Screenshot_2025-05-16_at_5.52.22_pm.png
  • might this help?