Skip to main content

Set multiple boolean variables at once via an interaction


Daniel_Cullinan

At the moment my interactions look like this:
Screenshot 2024-05-15 at 08.53.18

Is there a way to combine them all in one action, so “Set Variable 1 and Variable 2 and Variable 3 to false” ?

Hansel_Silva

When working with multiple variables in a single screen, I frequently need to reset its values to “default” with one tap, it would be great if instead of set its values line by line, they could be set within the same line, for example:

Set input_1, input_2, input_3, …input_N
to “default”

(actual way)
image 1


Daniel_Cullinan

Yeah, I asked that yesterday but no responses. Currently working on a very complex prototype and the interactions panel leaves a lot to be desired.


dvaliao
Figmate
  • Community Support
  • May 16, 2024

Hey @Daniel_Cullinan, thanks for reaching out!

There is currently no way to combine them all into one action at this time. This is just how it was built, so there’s no way to chain right now.

I’ve passed your feedback onto the team, and I’ve changed your topic into a feature request for future consideration.


Greg Madison
Hansel_Silva wrote:

When working with multiple variables in a single screen, I frequently need to reset its values to “default” with one tap, it would be great if instead of set its values line by line, they could be set within the same line, for example:

Set input_1, input_2, input_3, …input_N
to “default”

(actual way)
image 1

This is so important for interactions like a focus state file folder tree simulation, for example. 

Please figma team 😔


Raz_Pulurian

Wondering if variables could be expanded to support this one day. Maybe the ability to create a ‘boolean group’ in the variables window which users can select and manipulate in prototypes. Something like:

Boolean Group

  • Boolean 1
  • Boolean 2
  • Boolean 3

The group could have properties, like ‘only allow one selection at a time’, and events like ‘set all false’ or ‘set all true’.


Reply


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