Any idea why this wouldn’t be working in some cases?
For example, on the user profile dashboard I give them the ability to update their username or email address, but I want to check to see if that already exists in the database, as well as pop up a modal saying the information was changed, or the username already exists.
So, on the button to submit the change, I set up a Link to the “already exists” modal to be > “sometimes…”
All Users > Count
Username > is equal to > inputUsername
“is not equal to”
Meaning, if there IS a username of that value (Count will not be 0) then pop up the modal saying the username already exists.
The problem is that the first time I click the button, nothing happens, but when I click the button again, the modal pops up.
So it’s as if it’s one step behind?
I tried doing this by making the button set a “variable” within the Logged In User to be the value of the input, then check against the variable instead of the input but the same thing happens.
So I just confirmed this by doing the following:
Set the button to update the logged in user’s “variable” to the result of All Users > Count > Username is equal to inputUsername
put a text field on the page with the magic text of the logged in user’s variable field.
The first time I click the button after typing in a username I know exists, the text field remains empty. When I click it a second time, it shows “1”
So it’s like it’s registering the value of the input field the first time I click the button, then doing the “count” the second time I click the button.
however, if I just tell the button to assign a value to the text field, it does it immediately upon the first click.
What the heck is going on here!?!?