web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Set a dropdown default...
Power Apps
Unanswered

Set a dropdown default using param on start

(0) ShareShare
ReportReport
Posted on by 57

Hi everyone,

I'm trying to get a dropdown to be "pre-selected" when an app starts based on a "param" in the URL. I want to set the "Category" dropdown in my app using the param in the URL cat=xxxxx (text)

I've tried to use If(!IsEmpty(Value(Param("cat"))),LookUp(Choices('IT Helpdesk Knowledgebase'.Category),Value = Value(Param("cat")))) however I get the error "Expected Text value."

Any ideas?? Thanks in advance!

error.PNG
Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Daniel_Pipe 
    Yes, you are providing a record for the Default of a dropdown control...it needs to be text.

    From what I see, all the lookup is a waste in this case.  You simply need to set the Default property of the Dropdown to:  Param("cat")

     

    I hope this is helpful for you.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard