Skip to main content
Jul 11, 2023 11:02 AM UTC

Invert boolean variable for layer display

Right now, tying layer visibility to a variable means if the boolean is false = layer is hidden. It’d be great if we could invert this functionality (boolean is false = layer is shown) on a per-layer basis as I need to show some layers and hide others depending on the state of the variable.

Anyone else run into this?

    45 replies

    Apr 29, 2024 4:27 AM UTC

    +1 for this!!!

    Joseph_Sjoblom
    New Member
    May 13, 2024 1:57 PM UTC

    I’ve done the same and yes, it feels redundant. I thought I must be doing something wrong, but it seems this approach is a feature, not a bug.

    Don
    May 24, 2024 6:37 PM UTC

    Design would be fairly simple. In the layer section, it shows a bound boolean property as a chip with an eye icon. Swap that icon for the closed icon, meaning you hide it when true. If the user clicks the icon in the chip, it swaps being visible or hidden when true.

    Desislava_Slavkova
    Active Member
    Jul 25, 2024 1:52 PM UTC

    I’m still waiting and hoping we can have this soon. +1

    Kanika1
    Jul 26, 2024 8:08 AM UTC

    +1, much needed for complex prototypes. Right now 2 variables need to be created to handle this scenario, which makes managing variables a mess.

    Jul 26, 2024 11:23 AM UTC

    I’m new to Figma but already run into the need for this after a few days

    Jul 29, 2024 11:59 AM UTC

    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 😦

    Timo_Karhu1
    Sep 26, 2024 8:18 AM UTC

    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.

    Christian_Franck
    New Participant
    Nov 22, 2024 3:48 PM UTC

    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.

    igor.paillard
    Dec 12, 2024 4:14 PM UTC

    Single and simple show hide variable ( when I click, if true then false and if false then true)