Skip to main content
iammai
June 22, 2023
Question

'Change to' with conditional action not working

  • June 22, 2023
  • 66 replies
  • 7358 views

When based on a conditional I want the component variant to change to another one (depending on the conditional), it doesn’t let me choose it to go to two different change-tos. If I change one of them, it changes the other one immediately.

I would upload image or video but I can’t as I am a new user. But basically to replicate this:

  1. Create 3 variants of a component (eg a number 1, 2, and 3 in a frame, and make them into component variants, let’s say the prop is either 1, 2, or 3)
  2. Create a variable (eg. next that is 3)
  3. From variant 2, create an on click interaction that has a conditional:

if (next == 3){
change to props = 3
}
else{
change to props = 1
}

What you will see is that when you create the second change to, it is automatically set to props = 3, and if you try to update the second one to props = 1, it will change the first one to props =1 as well.

This topic has been closed for replies.

66 replies

Maciej_Ziolkowski
February 28, 2024

I’ve just made a test after reading release-notes from Feb 27 '24, and the change to interaction seems to work within conditional statements. Am I right? Can anyone confirm?

Yousef_Ghazal
March 6, 2024

seems like a pretty big bug to not have it be a priority…

nweze_chike_michael
May 2, 2024

This is my problem, Please how do I solve this , I have spent hours trying to figure it out ,how do I solve this.

Kasia_Julia
New Participant
May 5, 2024

Also waiting for this bug to be fixed 🙂
Any chances to vote on this being resolved a bit earlier somehow?

Slava_Bronevitskiy
Active Member
July 18, 2024

Reporting in 2024. This is still buggy, but now you can’t even select the variant to change to:

Normal

A second change to (trying the workaround, so it can be dragged)

Within condition

The ability to select which variant to change to completely disappears.

Please fix

impactby.design?ref=nI
Justin42
September 10, 2024

I’m still seeing this behavior a YEAR later. Conditionals result in zero options under ‘Change To’.