How do I reset an input on the native mobile app. I used to just assign initial value to a blank state but that doesn’t seem to work,
Hi! I don’t know where this input is but in theory you have two possibilities or reset relevant input in the workflow or reset group.. this will work..
Tried both of those too and neither works, at least in my mobile app.
So there is some error somewhere.. can you share screen?
It’s because the input is a login email address and it was set to remember the email address. Remembering it seems to over-ride the reset group action.
Resetting the group does work on other inputs that aren’t a login email address so I guess it works for the most part
Hey, I see exactly what’s happening. The reason resetting the input isn’t working for your login email field is because the remember email or autofill feature in the native app overrides any reset action. That’s why it works for other inputs but not this one. The best solution is to disable the remember me or autofill option for that email input so that you have full control over it in Bubble. Once that’s disabled, you can reset the input or set its value to an empty string through a workflow. If you want to keep autofill for convenience, you can store the email in a custom state when the user logs in and then overwrite the input with an empty string or the blank state on logout or reset. Keep in mind that behavior can vary slightly between iOS and Android, so it’s good to test on both platforms.
just to add a quick tip on top of what iamcharlesac said. the simplest fix is to go to your email input element settings and turn off the remember email or autofill option. after that your reset group or reset input action will work normally.
if you still want users to have the convenience of autofill, you can use a workflow that runs on page load to save the email to a custom state first, then clear the input. that way the email is stored but the input field is clean.