Element visibility based on Access Group

The ability to change the visibility not only based on the log-in status but also on the different access groups. For example to make an element visible for a customer of access group A but not for a customor with access group B.

  • Simon Ester
  • Feb 13 2023
  • Patrick Scantland commented
    14 Jul 11:33am

    Why building a group-based membership model if we can't do nothing with it afterward?

    Use cases are plenty:

    • controlling element-level content, including code block that forward the user to the right page using simple document.location snippet

    • on user account page displaying something when a user has an account, but no membership (user group) yet

    • gracefully handling a situation where a user with an account, but no membership(user group) sees the "access denied" page

    • ... and many more

  • Jonathan Hofmann commented
    9 Jun 10:25am

    This would be a game changer for me!

  • Shawn Edwards commented
    28 May 03:04pm

    Please

  • Jeannette Miller commented
    14 May 06:37am

    To change the visibility of elements based on different access groups, you can use conditional logic in your website’s code.

    Define the access groups for your users, such as ‘Group A’ and ‘Group B’.

    Assign a unique identifier or class to the elements you want to control visibility for, based on the access group.


    Use JavaScript to implement the conditional logic. Check the user’s access group upon login and then show or hide elements accordingly.

    .group-A and .group-B are classes assigned to elements that should be visible to users of Group A and Group B, respectively.

    userAccessGroup is a variable that should be set based on the logged-in user’s access group.

    The updateElementVisibility function updates the display property of elements based on the user’s access group.









    maximtimeclock

  • Mike Grossman commented
    25 Apr 04:01pm

    I agree, please include this feature as it's important to the gated content user experience.

  • Philipp Neuberger commented
    23 Apr 04:25pm

    This is super important - not sure how to present a Overview page anyways?? I am doing a private event page for a wedding and cannot let the others see the dates they are not invited to...

  • Jodie C. commented
    13 Apr 11:23am

    Really important addition. Particularly to be able to show content not just based on the delineation of separate access groups but for my purposes I need content accessible to all my members and of those members only some have access to other content so they would be members of two groups. I would like not to have links and therefore the knowledge of other content available to members that are not members of both groups.

  • Lana Lauren commented
    21 Feb 05:36pm

    Yes, please add this feature. It would be very important to make my site work the way it should :)

  • Abigail Mercer commented
    13 Feb 02:51am

    Also ran into this snag and I'm ready to launch the site - this is the one issue I'm trying to find a work-around for, but if this could be an added feature or if we could get an update, that would be amazing!

  • Gabe Gunlock commented
    31 Jan 06:19am

    Massive need for elements to be visible by individual access groups. Any time frame updates would be very appreciated!

  • Tyler Marcus commented
    29 Jan 09:45pm

    Any hope for this feature?

  • Jordan Ryskamp commented
    29 Jan 02:55pm

    Please!

  • Perch Marketing commented
    26 Jan 07:34pm

    This is so needed. You've only got half the solution with the current implementation.

  • Alexander Zaxarov commented
    16 Dec, 2023 06:58pm

    yes, please!

  • Filor Slash commented
    9 Dec, 2023 09:33pm

    Insteresting feature to have

  • Ben Walsh commented
    5 Dec, 2023 12:33pm

    I was so excited about memberships in Webflow until I hit this exact roadblock on both my personal portfolio and a client site to show different products based on user role.

    It's now December. Is this due for release?

  • Ruben Diaz commented
    14 Nov, 2023 09:22pm

    This is something that really needs to be added, especially with memberships now being something that webflow advertises

  • Brandon Vogt commented
    1 Nov, 2023 06:16pm

    Is there an update on this feature request?

  • Stefan Tzvetanov commented
    13 Sep, 2023 09:42pm

    We need this...... now!

  • Jonas Gullman commented
    11 Sep, 2023 11:06am

    We need this yesterday!

  • Load older comments
  • +5