Component activate state of another component
Hi,
I have a checkbox that when clicked should enable a dropdown. Is this possible in XD? (I would rather not use another artboard to accomplish this.)

Thank you.
Hi,
I have a checkbox that when clicked should enable a dropdown. Is this possible in XD? (I would rather not use another artboard to accomplish this.)

Thank you.
Hi Doug. Unfortunately, what you're trying to do isn't supported in Xd. There's a feature request for it.
If your checkbox and dropdown are close to one another, you can put them both in one main component. So if both elements are components, they will be nested inside the parent component. This parent component will have 2 states - one with the checkbox unchecked and the dropdown invisible, and another with checkbox checked and dropdown visible. You can make it so when the checkbox is clicked, the parent component switches to the state where the checkbox is checked and the dropdown is visible.
One note: When adding triggers to a nested component, you will still not be able to see the parent component's states. To get around that, put the nested component (the checkbox) in a group on it's own. Then add the trigger to the group, and you will be able to see the parent's states.
Of course, this is all considering your both components are relatively close and putting them in another component is a viable option. If they are far away and there's a lot of elements inbetweeen, it might not be practical to do at all.
In case you still can't get it to work, feel free to upload the .xd file somewhere and share the link here, or via PM if it's sensitive, and me or someone else will take a look and help you out with setting it up.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.