I’ve only been working with Axure for a while so there are a lot of new things for me.
I am currently working on a mobile application prototype and I have some problems with setting the variables on switch (toggle) buttons.
If someone can help me solve this problem, I would really be grateful!
One of the pages in the app is ‘Settings page’ which consists of four different settings, that can be switched on or off using the switch buttons.
I would like to set the variable on each of the buttons so that all settings are preserved during the change of the page + when at least one of the switch buttons is ‘off’ I would like to set a notification on the bottom of the screen on each page of the application saying: ’’Collecting some data is disabled.’’
Once the user clicks on ‘Enable’ button in notification, he will be redirected to the settings page (I have already set this up and its working).
I have already tried to set the variables, but unfortunately I failed.
It’s kind of hard to tell exactly what it is you’re trying to do without your project file, but, if I understand correctly, this might be what you’re looking for: Toggle_Variables.rp (130.5 KB)
You should just be able to set some global variables when the user toggles a switch and then check for those variables when the page loads. There’s lots of ways to approach it; I included two, slightly different ways in the .rp file.
Not sure if the requirement is to just store the toggle state of the buttons, if yes you can do it without variables provided you are on the “same page”.