I’m new to Figma but already run into the need for this after a few days
This is such a basic feature, +1 for this to be implemented!
I am new to Figma, but previously has been using Axure for more than 15 years. I had to switch to Figma due to other reasons, but prototyping abilities of Figma are worse than in Axure 15 years before. Why people tend to call Figma today’s “Standard”?
I am afraid that HyperCard app on original Macintosh in 90’s was more capable 😦
Example problem:
- Page has a title with notice label like (fill this form)
- Page has a notice at the top giving instructions to the user
- Page has multiple inputs (components) with empty/filled states
Each input sets: X_FILLED = true
Each input has click: if X, Y and Z then PAGE_DONE = true
The additional elements on the page then depend on PAGE_DONE boolean:
- Hide (fill this) tag in notice color
- Change color of section title from notice color to regular color (hide + show title)
- Hide additional filling instructions
- Show all done instructions
Please input the “Show if false” somehow.
That would be helpful for me too. Give more flexibility. Especially when you need to toggle something like either showing a label or an icon. The boolean property “Use Icon” true can then be used for showing the icon and hiding the label. For now I need to hide or show it manually or create a variant for it. This blow up my variants I need to keep maintained. But there are many other use cases for me.
Single and simple show hide variable ( when I click, if true then false and if false then true)
Being able to set the Value of Var z depending equal to !Y in Local Variables would already solve this:
so lets say I have a boolean “Show Edit Dialog” and now I want to link the variable “Forbid change” (applied in another comp) to it, so that whenever Show Edit Dialog is true, Changing some other component is forbidden.
Or do I oversee something and this is already possible?
Thank You!
Thank you!
I also use always 2 variables and when I change the value of variable1 I also update “variable2 = not variable1” and vice versa. The 2 variables are not the problem, but always keeping both in sync is very annoying. In the variables panel you can set “variable1 = variable2”, it would be nice if figma would just allow boolean operators in there, so you can set any combination of other boolean variables (e.g. NOT variable1 AND variable3 OR variable 2) as value of another variable.
Why this feature is desired?
I also encountered this “problem” in Figma. Mainly this feature is required because there are plenty of common situations that would benefit from it. For instance if you create a basic todo-app-ui then a todo is “done” or “not done” for which you likely have two visual appearances that depend on one variable. Sure, there are workarounds, but the workarounds have a lot of downsides, so implementation of the requested feature (show when x is false and hide when x is true) is very much desired.
Why two variables for each boolean don't scale
There is the workaround with having a “active” and “inactive” boolean variable. This however does not scale well because:
- You have to add to variables for one boolean while.. booleans have two states you could benefit from
- You have to change both variables everytime the situation changes
- Your list of variables is twice as long and thus finding the right variable is more difficult
- Your list of variables is twice as long and thus keeping overview over it is mentally harder
Why component-variants don't scale
There is the workaround of creating component-variants for the true and false state. That however isn't maintainable either. If there are more variables at play you get a multitude of component variants. For instance if you have 5 booleans, you'd have 2^5 = 32 variants to possibly maintain.
+1, every time I need to build error messages in a prototype, I need an inverse boolean. e.g. if something is false, show the error layer.
+1, I’m confused that this isn’t a thing already, as it seems so elementary to me.
+1, I’m confused that this isn’t a thing already, as it seems so elementary to me.
Well, only 25 votes.
Will this ever be implemented? It seems like such a tiny addition with a lot of potential.
+1, I’m confused that this isn’t a thing already, as it seems so elementary to me.
Well, only 25 votes.
Well, only 7230 views.
A request like “Invert boolean variable for layer display” getting 7,230 views in 2 years means thousands of people have run into the same issue. You don’t search for and click something that specific unless you’re facing it yourself.
Votes show explicit support, but views show recurring need - and in cases like this, the audience is already self-filtered. Ignoring views risks missing the real scale of the problem just because many readers didn’t (or couldn’t) vote.