Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Edit Form Filter

Posted on by 40

Hello Community.

 

i got an edit form connected to a sharepoint list containing a Choice column. I'd like to filter the Dropdown in the edit form, which got the items "Choices([@'Maschinen Glasfertigung'].Maschinenart)". Here i'm having trouble. When i try to use a regular filter expression with expressions containing [@something] i can't figure out the correct syntax. i tried to use a workaround by using a simple Filter formula directly getting the required items from the database without using the Choices function, but in this case i get an error when i try to submit the form saying somthing like "given datasource is invalid for the function". By now all i can think of is not using the form at all anymore and using Patch() instead which is quiet annoying. 

 

Do you guys have any solution for that matter? Help is much appreciated

  • CU20111035-0 Profile Picture
    CU20111035-0 40 on at
    Re: Edit Form Filter

    @StretchFredrik: same error message as mentioned in my first post

  • StretchFredrik Profile Picture
    StretchFredrik 2,618 on at
    Re: Edit Form Filter

    Have you tried formatting it like the example below?

    Filter(Choices(ListName.FieldName); Value = "YOUR_FILTER_VALUE")
  • CU20111035-0 Profile Picture
    CU20111035-0 40 on at
    Re: Edit Form Filter

    Thanks for the reply @VishalJhaveri. Do i read that correctly as "doesn't work with edit forms, use patch() instead"? For now i can't imagine that something that simple like filtering in an edit form is not possible.

  • VishalJhaveri Profile Picture
    VishalJhaveri 1,164 on at
    Re: Edit Form Filter

    Patch function will help you to achieve this kind of dynamic requirements.
    Refer this Blog: Master CRUD Operations in Power Apps : Part 4 (inkeysolutions.com) to achieve your requirements. 

    This is a blog from a 5 part blog series of using PATCH function in Power Apps with SharePoint as backend.

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard