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 / Desplay SharePoint lis...
Power Apps
Unanswered

Desplay SharePoint list base on previous question value

(0) ShareShare
ReportReport
Posted on by
Hi there.
 
I have many SharePoint lists.
 
I created a app and need to display a table. But the list to display will depend on the previous answer.
 
If the previous answer is Option 1 I want List A to be displayed if it is Option 2 I want list B to be displayed.
 
I tried this code but it is not working.
 
If(PlantDataCard.Selected.Value = "Salads and Pickles",
DisplayList('[OT] Devices - Bethlehem - Salads and Pickles'),
false)
Screenshot 2024-11-07 143710.png
Categories:
  • ronaldwalcott Profile Picture
    3,914 Moderator on at
    Can you explain this line?
    DisplayList('[OT] Devices - Bethlehem - Salads and Pickles')
     
    Are you saying that the data you wish to display is in different SharePoint lists?
    If so, you would essentially have to popup a different screen showing the details from that list or have controls for the list on one screen and make them visible when chosen.
     
     
     
  • Inogic Profile Picture
    1,297 Moderator on at
    Hi,

    If you're trying to display data in a gallery, you can set the Items property of the gallery as below


    If(
        PlantDataCard.Selected.Value = "Salads and Pickles",
        '[OT] Devices - Bethlehem - Salads and Pickles',
        If(
            PlantDataCard.Selected.Value = "Option 2",
            '[OT] Devices - Bethlehem - List B',
            Blank() // Optional: specify a default or blank result if no match is found
        )
    )

    Hope this helps.
     
    Thanks!
    Inogic Professional Services: Power Platform/Dynamics 365 CRM
    An expert technical extension for your techno-functional business needs
    Drop an email at crm@inogic.com 
    Service: https://www.inogic.com/services/ 
    Tips and Tricks: https://www.inogic.com/blog/ 

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 345 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard