03-26-2024 7:08 PM
Any page variable binded as boolean works, if i have two containers and bind them to a boolean state, one false and the other true, and bind a button to change the variable on click it does no work
03-27-2024 1:26 PM
It's not clear to me what you mean:
Is the scenario you have 2 containers you want to bind its Visible property to a variable and then click to show one, then the other?
03-27-2024 2:38 PM - edited 03-27-2024 2:41 PM
Hello Dan,
Sorry for the confused report, I'll send print to help illustrate what i want to say:
I have a variable called pageVars.booleanVar with the initial value = true
My canvas has a photo, 2 containers (one with a spinner and the other with the credentials input) and a button:
I binded the variable to the spinner container visibility and the inverse value to the login container visibility so when show one don't show the other
After I binded a flowfunction to invert the variable when tap on the button and a toast with "Done" after:
but when tapping the button nothing works, even setting the function to set the variable to false, still don't work:
And the toast doesn't pop up, but if i use an appVars it works.
I tried to share a screen record i did but i don't have permission to do that...
03-31-2024 1:41 PM
I was able to do exactly what you wanted with the page variable. I even created the third-party authentication, which I assume you used, and created it with those components/page. Not sure what is happening for you.
When you say nothing happens, do you see the spinner and the login screen at the beginning? Can you show with Alert the value of the boolean (you'll have to use a formula and IF function)?