cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User III
Super User III

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,858)