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

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
Super User
Super User

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,950)