cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ramanan89
Helper III
Helper III

Visible only for Admin Group

Hi all, I am trying to hide a Combo box named "Type" from "Visitors" group and it should be only visible for the "Admin" group in the form. Can this be done in power apps? Any help please. Regards

1 ACCEPTED SOLUTION

Accepted Solutions

In that case follow this approach;

https://youtu.be/d0Ra0qr29JM

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

8 REPLIES 8
eka24
Super User
Super User

Am assuming you have a User Table containing user datails and the group column.

 

OnStart of the App;
Set(LoggedGroup,LookUp(UserTable, UserColumn= User(). Email, usersGroup))

 

Then in the visible of the Combobox;
LoggedGroup= "Admin Group"

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Thanks, but I don't have a user table with details. It is from sharepoint I need to take the data.

In that case follow this approach;

https://youtu.be/d0Ra0qr29JM

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Sorry for the late reply, I wasn't well. So couldn't check it.

This works very well. Thank you so much 🙂 

Hey, one quick question...

Is there anyway to hide only one value in the comb box ?
Right now I have given this formula in the visible property of combo box, But I actually want to hide only one value out of three values of comb box, if the value is empty.

!IsEmpty(Filter(Office365Groups.ListGroupMembers("1223456-232-3434-2323-232323").value,mail=User().Email))

Thanks 

To clarify, you have 3 users, but you want to hide one of them?

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

No no. I have three options in combo box. For example, Option 1, Option 2 and Option 3. So if the user is valid, then it should show all the options else it will show only Option 1 and Option 3

Thanks. I was able to figure it out myself. 🙂 

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Solution Authors
Top Kudoed Authors
Users online (2,979)