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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Form control showing s...
Power Apps
Unanswered

Form control showing selected item from a searched Gallery

(1) ShareShare
ReportReport
Posted on by 2
I am using a Vertical Gallery to select items from a sharepoint list, to view in a Form control. I now wish to add a Text control to search the Vertical Gallery as there will be many entries there to select from
The Gallery and Form operated properly together, until I added the highlighted Search operation below. I now get an error on the Form: "Invalid formula. Expected a value compatible with DataSource." I'm not sure what to do now, because the Gallery and Form are using the same DataSource.
 
Would appreciate help on getting the Form to now show a selected item from the gallery, that has been searched by a Text control. Thank you!
 
Gallery glyReportSelect > Items:
// Sort in descending order by Modified date
SortByColumns(
    // Filter on text entered to txtProjectSearch
    Search(
        // 'Project Name' is a lookup field in source sharepoint list and cannot be used for searching. Add new text column with the value of the 'Project Name' to use for search
        AddColumns(
            'Project Status Reporting',
            ProjectNameText,
            'Project Name'.Value
        ),
    txtProjectSearch_2.Text,
    ProjectNameText, 'Report Month'
    ),
    "Modified",
    SortOrder.Descending
)
 
Gallery glyReportSelect > OnSelect:
// Clear any fields in the Form, and set the form mode to View
ResetForm(ProjectReportForm1_2);ViewForm(ProjectReportForm1_2)
 
Form ProjectReportForm1_2 > Items
// Display the item selected in Gallery
glyReportSelect.Selected
 
Additional context
Data source: Sharepoint List 'Project Status Reporting'
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,442 Super User 2025 Season 2 on at
    HI,
     
    Sorry but what I don't see is this
     
    1. they search
    2. they selected a record
    3. It failed
     
    So I am not sure if someone selected a record (which is required for the Form to work, or not?
     
    Also, why are you resetting the form? if your are changing the data based on the select record?

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard