Skip to main content
iammai
June 22, 2023
Question

'Change to' with conditional action not working

  • June 22, 2023
  • 66 replies
  • 7357 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

Celine_
Figmate
Community Support
September 28, 2023

Hi @Felix_Vanneste , thanks for flagging this!
Yes, it should be resolved. Please reach out to the team by filling this form: https://help.figma.com/hc/en-us/requests/new
Please use your address email linked to your Figma account and, also include your screen recording and a copy of your file so they can investigate further. Thank you!

Felix_Vanneste
September 28, 2023

Thank you @Celine_Figma. Done.

Matthias_Lick1
October 11, 2023

Hi, is there a fix for this? I am still experiencing this issue…

Celine_
Figmate
Community Support
October 11, 2023

Hi all!
@Felix_Vanneste , I check in our backend, and I can’t see your ticket, have you used the same address email than the one you used in the Community here?

@Matthias_Lick1 Hi - sorry to hear you are still having trouble! Please also reach out to the support team, so the team can investigate further here: https://help.figma.com/hc/en-us/requests/new . Thank you

Felix_Vanneste
October 11, 2023

Hello @Celine_Figma Yes sorry, indeed I realise that I have used another email.
I had a response from support and it has been escalated to technical team.

Celine_
Figmate
Community Support
October 11, 2023

@Felix_Vanneste No worries, glad to hear it’s been following up!

Rav
New Member
October 12, 2023

@Celine_Figma Hiya, I’m having the same issue, I’ve already submitted a bug ticket to support but here’s a GIF of what I’m experiencing.

Figma_2eWt7njPYe

Christian_Conte
October 16, 2023

I’m very happy to see progress on this topic, when I put it in and it just worked I was very excited.

But unfortunately when I try to use the component in another design file, the interaction just disappears.

If I click on “reset interactions” it restores the skeleton of the behavior, but loses the information regarding the variant change.

If I manually reconstruct the interaction in this new file, it seems to work. In some cases this is possible, but for very complex interactions this is actually a limiter.

Duhr_Jeremy
October 17, 2023

Same issue here, it’s very frustrating

October 18, 2023

Experiencing exactly the same issue.

I am trying to make a selection change the value of a variable to “Variable +1” then another component needs to behave on conditional that 'if variable = variable+1"- Change to…" but it is not working with the after delay function at all… it works with tap but not after delay…