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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Select default value f...
Power Apps
Unanswered

Select default value for a choice column in data verse

(0) ShareShare
ReportReport
Posted on by 431

Hello Power apps users,

 

I have a choice column in power apps. The choice column I used here is NOT a recommended one. Choices are : Received, Sent,Return. 
I have 2 buttons. 
Button1 OnSelect: Set(VarChoice, “Done”)

Button2 OnSelect: Set(VarChoice, “Back”)

 

I would like to set the default value of the drop down value as Received if VarChoice value is Done and Return if VarChoice value is Back. 

I think using recommended choice column would solve my issue, but cannot change column type with creating new one. 

 

can anyone please help! Thank you so much in advance!

Categories:
I have the same question (0)
  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    Hi @KrishR 

     

    Try this in the Default property of the drop down.

    Switch(VarChoice,
     "Done", "Received",
     "Back", "Returned"
    )

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

  • KrishR Profile Picture
    431 on at

    Hi @AARON_C ,

     

    Thanks for the quick response. I tried the above code on default property of the dropdown. Error message says “Expected record value”. 

  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    @KrishR 

     

    What is the Items property of your dropdown?

     

    Or try:

    Switch(VarChoice,
     "Done", {Value: "Received"},
     "Back", {Value: "Returned"}
    )

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

  • KrishR Profile Picture
    431 on at

    Item property of the dropdown value is

     

    = Choices(‘Status(DataVerseTableName)’)   

    tried the new code didn’t work out. 

    thanks for the help again

  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    @KrishR 

     

    Is this what your column in your Dataverse table looks like?

    AARON_C_0-1707959448946.png

     

  • KrishR Profile Picture
    431 on at

    Yes. That is correct

  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    @KrishR 

     

    Could you please share a photo of your Defaults property of your drop down. This should have worked the first time.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard