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 / How to change the choi...
Power Apps
Answered

How to change the choices presented to a user from a SP choice field

(0) ShareShare
ReportReport
Posted on by 1,088

Hi,

I have a choice field in SharePoint like

 

Apple

Orange

Pear

 

In my Power app, if User().FullName = "Bob Jones"...

 

Then I would like the chocies presented to only be

 

Apple

Orange

 

...

 

How would I accomplish this without hard coding the choices in the app?

 

Right now the Items are

Choices([@Sponsor_1].Role_x0020_to_x0020_Sponsor_x002)
 
Thanks,
Terry

 

Categories:
  • Verified answer
    eka24 Profile Picture
    20,925 on at

    If(User().FullName = "Bob Jones",

    Filter(Choices([@Sponsor_1].Role_x0020_to_x0020_Sponsor_x002),Value = "Apple" Or "Orange"),
    Choices([@Sponsor_1].Role_x0020_to_x0020_Sponsor_x002))

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

    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.

  • Verified answer
    Mattw112b Profile Picture
    1,088 on at

    So eka24, this didn't work, it only shows the first option (before the OR's) in the dropdown (for example above, "Apple"... not apple and orange).  In my choice I have about a dozen choices and I tried to get them all to show except the one I didn't want, but always just shows the first one before the OR.

     

    So since I only needed (right now) to exclude one option, I just used the code you sent and instead did a

     

    Value <> "Pear"

     

    This works and shows me everything except that option, which will work for me today.

     

    In the future though if I need to exclude more than one option would be good to know how to get your method to work.

     

    Thanks,

    Terry

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard