Skip to main content
davidstreams
Participant
September 30, 2020
Answered

Feature request: Can a single event trigger (click) cause multiple component state changes?

  • September 30, 2020
  • 2 replies
  • 630 views

I have created a toggle component and set two states ('active' and 'inactive'). When I click on the toggle it now animates on and off.  Next, I created a text component and set two states ('active' and 'inactive') that transitions the text being displayed based on the selected state. 

 

I'm trying to link the states between the toggle and text so that when I click on the toggle, the text also switches between the active and inactive.  Is this scenario supported?  

 

{Renamed By MOD}

 

This topic has been closed for replies.
Correct answer Rishabh_Tiwari

Hi David,

 

Thanks for reaching out. I am afraid, as of now, we don't have an option to change the state of a different component from the same trigger however we have received a similar request on our XD UserVoice page. I'd request you to upvote this feature to add voice to it: https://adobexd.uservoice.com/forums/353007-adobe-xd-feature-requests/suggestions/38959297-allow-components-event-to-change-states-of-other-c

 

Let us know if you need anything else, we'll be happy to assist.

 

Regards

Rishabh

2 replies

Rishabh_Tiwari
Rishabh_TiwariCorrect answer
Legend
September 30, 2020

Hi David,

 

Thanks for reaching out. I am afraid, as of now, we don't have an option to change the state of a different component from the same trigger however we have received a similar request on our XD UserVoice page. I'd request you to upvote this feature to add voice to it: https://adobexd.uservoice.com/forums/353007-adobe-xd-feature-requests/suggestions/38959297-allow-components-event-to-change-states-of-other-c

 

Let us know if you need anything else, we'll be happy to assist.

 

Regards

Rishabh

davidstreams
Participant
September 30, 2020

Thank you for the follow-up and link.  I upvoted the feature and would love to help if you do decide to add it to a future version of XD (happy to beta test or provide feedback).  

 

Best,

 

-David

FrancoBits
Legend
September 30, 2020

You can achieve this using two artboards: one for when the toggle is OFF and another for when the toggle is ON and showing the text. 

 

OR

 

You could add the text inside toggle ON state, but probably would a messy workaround.