Skip to main content
Question

Variable page link


Charles_S

I’m trying to be efficient with how many variables I have. I have buttons and dropdowns that contain the same content - hence using a component. When a dropdown for example is placed on different page layouts, I want the user to click an element, have it expand (using a variant of the component) and when the user selects option in the dropdown, they’re navigated to another page… but for each mockup page, the location changes.

I thought I could simply set the ‘navigate to’ to go to a variable string, so I could change it on the fly. But that’s not possible. What’s another way to do this, without having 50 copies of my dropdown just so I can send each scenario to the right location.

This topic has been closed for comments

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