Skip to main content
Question

Cannot switch variant state in conditional prototyping


Hi Guys,

I’m kinda stuck here in this situation where I have added conditional prototyping to a variant with two states.
Imagine a variant called “Variant 1” with two states “Item default” and “item selected”.
And I have a boolean variable defined for another layer, just show/hide values.

So I’m writing the following condition:
On clicking the “Variant 1”
if boolean = false
{
do something
change the state of “Variant 1” to “Item selected”
}
else
{
do something
change the state of “Variant 1” to “Item default”
}

But here, on the ELSE condition, whatever values I’m selecting for the variant’s state change, it automatically applies the same in the IF statement. i.e., I cannot select different values.

Any idea why this is happening?

Attached screenshot of my condition.

This topic has been closed for replies.

2 replies

Haroll
  • Active Member
  • 273 replies
  • June 30, 2023

Hi @Rahul_S1

It is a known bug, which have not been patch yet, and you’re not the only one experiencing it ( Trouble with Figma's Conditional Interactions - 'Change To' Action - #9 by AndreiNistor )


  • Author
  • 1 reply
  • July 2, 2023

Thanks for the Info @Haroll !


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