Skip to main content
Question

Reset component state not working for my prototype?!

  • August 21, 2024
  • 2 replies
  • 205 views

I am working on a ‘quiz’ type project, just starting to play around more with variables and conditionals so that my prototype can be more life-like for demo. I made the options in the quiz so that only one answer can be selected at a time, I also made it so that the next button could only be activated and used if an answer is selected.

I was having issues that if ‘variable 2’ was selected on frame 1, then on frame 2 it would still be selected automatically instead of reset to default as it should be. I checked reset component state:

But the issue is still persisting and I cant find any other solution other than setting conditions on every next button that says if nextbutton is equal to true navigate to {next frame} and set variable 1,2,3… etc. to false.


Is there any easier way to fix this? If I go with this long solution it wont remember which was selected on the page if user navigates to previous page, but I would prioritize reseting the buttons on the next page over it remembering previous answers.

Thank you!

This topic has been closed for replies.

2 replies

Raphael_M
  • Power Member
  • 394 replies
  • August 22, 2024

Yes, there is. Just name your layers uniquely so it won’t preserve overrides.


Raphael_M
  • Power Member
  • 394 replies
  • August 22, 2024

For more context, check this video. Layer names are essential in prototyping in Figma due to preserve overrides.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings