Pricing Blog

anyone else having trouble with a basic show/hide?

  • kenkarma.-1234183540510294027

    kenkarma

    1 year ago

    i dont know whats wrong, i can for the life of me get this to work inside one of my components
  • lucasg-1234183739827814553

    Lucas G

    1 year ago

    can you show a recording maybe of the issue you're having?
  • kenkarma.-1234183810703429742

    kenkarma

    1 year ago

    1234183810422280333-Screenshot_2024-04-28_at_12.45.42_PM.png
  • lucasg-1234183962423726153

    Lucas G

    1 year ago

    that looks like a string value, not a bool
  • be sure to select the proper True/False options from the dropdown (boolean)
  • kenkarma.-1234184331195580456

    kenkarma

    1 year ago

    i want to use a variable to determine whether this is shown or not
  • lucasg-1234195468372803644

    Lucas G

    1 year ago

    right, that variable seems to have a string value, not a Boolean value
  • max.kayr-1234350777267523635

    Max

    1 year ago

    Hi @kenkarma! You need to use the Static Value False in Toddle. Otherwise,, you will get a string with the value "false". And a non-empty string is truthy in Javascript. Here is how you set the initial value for your variable: Click on the Formula Icon, search for "false" and pick that value. You will see that the Output says False, without the quotes.
    1234350776579657788-image.png
    1234350776856477756-image.png
    1234350777091231794-image.png
  • kenkarma.-1234661110095937607

    kenkarma

    1 year ago

    gosh! what a rookie mistake, thank to the both of you for catching that
    💪🏼1