web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
Categories:
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    Desplay SharePoint list base on previous question value
    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,135 Super User 2025 Season 2 on at
    Desplay SharePoint list base on previous question value
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard