Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Filtering combo box

(0) ShareShare
ReportReport
Posted on by 559

Hi All,

I have a gallery and form. When a item is selected in gallery it navigates to the form where I have a column called Implementation status combo box which lists down values. When the user is coming for the first time and the implementation status Colum has blank value, it must display only first two values in combo box( i.e. Open/ in progress) . When Open/ in progress is selected and saved and when the user comes the second time the combo box should display the next two values in combo box( ready for sepg review/under sepg review). Likewise it must display next two values. Any help / suggestion on this. 

Categories:
  • Sri Profile Picture
    559 on at
    Re: Filtering combo box

    @Drrickryp 

    The method which you suggested above will it work without changing the column to single line of text.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: Filtering combo box

    Oh well. 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: Filtering combo box

    Oh well. 

  • Sri Profile Picture
    559 on at
    Re: Filtering combo box

    @Drrickryp ,

    I can not change the column Implementation status to single line of text because I'm using the column in few other screens also. In my case it should be when the respective item is selected from gallery my form which has this column Implementation status should load the respective values. 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: Filtering combo box

    @Uthhra 

    • If 'Implementation status' is a choice type column, go to SharePoint and change it to Single line of text
    • In the app Settings, Activate the Named Formulas option
    • in App.Formulas, make sure the ";" ends each line

     

    T1 = ["Open","In Progress"];
    T2 = ["ready for sepg review","under sepg review"];
    T3 = ["Final","Archived"];

     

    • Add a "+" icon to the screen with OnSelect:
      • NewForm(yourform) ;Set(var,T1)
    • Unlock the 'Implementation status' card
      • hide the combobox
      • Add a dropdown control named ddStatus
        • Items property: var
        • Default property: Parent.Default
      • in the Update Property of the card
        • replace the text with ddStatus.Selected.Value
    • In the Gallery ">" icon

     

    EditForm([@Form1]);
    If(
     ThisItem.'Implementation status' = "Open" || "In Progress",
     Set(
     var,
     T2
     ),
     ThisItem.'Implementation status'= "ready for sepg review" || "under sepg review",
     Set(
     var,
     T3
     ),
     Set(
     var,
     T1
     )
    )

    or

    EditForm([@Form1]);
    Switch(
     ThisItem.'Implementation status',"Open", Set(var,T1),
     "In Progress",Set(var,T2),
     "ready for sepg review", Set(var,T2),
     "under sepg review",Set(Var,T3),
     Set(var,T1)
    )

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,594 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard