Problem with Ionic Toggle

Hello everyone

I am facing a technical issue and would greatly appreciate your assistance. During the user account creation process, I want to implement a system where checking one box automatically unchecks the other.

However, I’ve noticed an issue: it only works if I repeatedly check the same button. In this case, the other button gets checked and unchecked as expected. But when I switch to the other button, nothing works anymore, as if the buttons lose their state (or memory). I then have to refresh the page for it to work again.

Thank you in advance for your expertise and valuable help.

Hey!

Reset the container of the toggle you want to go back to the preset value, this should be enough. Just keep in mind to place each toggle in different groups to avoid resetting both at the same time.

Hello, thank you for your response, how do I reset the toggle container? sorry, I’m a newbie :cry:

No worries!

You just need to add the event to the input:

And add the action “Reset group/popup”

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.