web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / FormMode depends on lo...
Power Apps
Unanswered

FormMode depends on loged in User which is in a collection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello World,

first im impressed by this board!

 

So my issue is that i want to change the FormMode based on a current logged in User which is or is not in a collection from a Office365 Group.

 

My Office365 Collection: ITSupportDE

My CurrentUser Collection: DataUsername

My Form which should be in FormMode.View or FormMode.EditIncCreatorRightPanel

 

I tried with different formulas but no success.

 

If(DataUsername in ITSupportDE, FormMode.Edit, FormMode.View)

If(First(DataUsername).Value in ITSupportDE, FormMode.Edit, FormMode.View)

 

but i got always the following Errorcode: invalid schema, expected a one-column table.

 

i appreciate any help,

 

best regards,

 

Tarik

Categories:
I have the same question (0)
  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @Anonymous ,

     

    Can you tell me what how your collection is?

    Also, you can get current logged in User's info by using User() and its related info with dot operator. 

    Compare User info with your collection on form level.

     

    Hope this helps

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

    yes i know that i can get my User with User().FullName but cause of performance solving i tried this one but with User().FullName it dosnt work also.

     

    here is my Office365 Group Collection compared to Currentlogged in User Collection:

     

    TarikGER_0-1674911568117.png

     

    Both have the same format

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Ok i guess i could solve it by my own but with following code:

     

    If(User().FullName in ITSupportDE.displayName, DisplayMode.Edit, DisplayMode.View)

     

     

    I used the DisplayMode cause of another issue

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard