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
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,432)