cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dalacarelia_196 Helper III
Helper III

Tricky Dropdown list

Hello there again 

 

I have one dropdown list there i am using this code and its working out fine 

SortByColumns(Filter(tblProgram;Skola=ddskola.SelectedText.Value;(StartsWith(Program;"B") Or StartsWith(Program;"C")Or StartsWith(Program;"D") Or StartsWith(Program;"E") Or StartsWith(Program;"F") Or StartsWith(Program;"G")Or StartsWith(Program;"H") Or StartsWith(Program;"I")));"Program";Ascending)

 

But i want the Dropdown list showing " Select in the list " first end when klickning on dropdown my sort will be visible 

 

This is my code iam using today as trying dont workout i have trying with ["Select in the list"] but nope 

My hope is that iam on the right track but wrong code . 

 

ONSELECT

If(
   IsBlank(["Select in the list"]);  // Check if the user click the program Dropdown box firstly and type the text
   Set(IsClick_program; false);     // User click this Dropdown box firstly to could select the filtered program option
   Set(IsClick_program; true)       // User wants to re-choose the program option again
)

 

ITEMS 

If(
    IsClick_program;
    SortByColumns(
        Filter(
            tblProgram;
            Skola = ddskola.SelectedText.Value;
            (StartsWith(
                Program;
                "B"
            ) Or StartsWith(
                Program;
                "C"
            ) Or StartsWith(
                Program;
                "D"
            ) Or StartsWith(
                Program;
                "E"
            ) Or StartsWith(
                Program;
                "F"
            ) Or StartsWith(
                Program;
                "G"
            ) Or StartsWith(
                Program;
                "H"
            ) Or StartsWith(
                Program;
                "I"
            ))
        );
        "Program";
        Ascending
    )
)

 

 

 

1 REPLY 1
eka24 Community Champion
Community Champion

Re: Tricky Dropdown list

You can use a combobox and set its placeholder property to ["Select in the list"
However If you insist on Dropdown, follow this post
https://powerusers.microsoft.com/t5/Building-Power-Apps/Need-Dropdown-with-blank-null-default/td-p/5...

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (9,114)