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 / Only showing certain c...
Power Apps
Answered

Only showing certain choices in a form control

(1) ShareShare
ReportReport
Posted on by 75
Hello - 
I am building a multi-screen power app based on a SharePoint list DataSource and I have an issue that I'm hoping someone can help me with...
 
The form control in question is a choice column in SharePoint.  Here are the choices:
  1. Legal right of re-employment (e.g., following maternity or parental leave)
  2. Return from approved leave of absence (e.g., reinstatement guarantee, sabbatical
  3. Return of expatriates to their home country according to their Development Plan
  4. Priority of placements because of agreements with employee representatives
  5. Extensive departmental or divisional reorganizations that are approved by the responsible management (e.g. redeployments pools) – (this is also a deployment)
  6. Summer hires, interns, co-ops, trainees and other temporary positions
  7. Extension of contracts as well as takeover from temporary employment in the same position
  8. Post-doctoral positions
  9. All Project Manager positions with defined, time limited project assignments
  10. Short-term assignments (posting optional)
  11. Placement of trainees at the end of formal trainee programs
  12. Transfers that are intended to avoid the potential layoff or termination of qualified employee – (if it’s a potential layoff, this is also a deployment scenario)
  13. N/A
Here is how this looks in my PowerApp:
 
Here is what I want to happen - 
If Type of Request Validation reads "Posting Exception, Approvals Not Required", I want all of the choices in DataCardValue17 to show up (they are all of the choices in the choice column listed above).  If Type of Request Validation reads anything else, I want "N/A" to be the only choice.
 
The formula that I started to use in the items property for DataCardValue17 is included in the screenshot - this is not working.
 
Any other ideas on how I can get this to work?
 
Thank you!
Categories:
I have the same question (0)
  • Verified answer
    Mark Nanneman Profile Picture
    991 Moderator on at
    Your drop down or combobox needs an collection (array) of choices, a single string like "N/A" is not acceptable for the Items property.

    Assuming "N/A" is a valid option in your Choice Column Option Set, try this:

    (be careful, I just typed this off your image, might contain typos)

    If(
    'Type of Request Validation'.Text = "Posting Exception, Approvals Note Required",
    Choices([@'Deployment/Posting Exceptions Request'].'Posting Exception (Approvals Not Required)'),
    Filter(Choices([@'Deployment/Posting Exceptions Request'].'Posting Exception (Approvals Not Required)'), Value = "N/A")
    )

    The idea is that your default should be a filtered Choices collection where Value = "N/A".


    If this helps, give this response a like and mark it as an answer, thanks!
  • JD-03091828-0 Profile Picture
    75 on at
    This worked beautifully - thank you!

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard