Skip to main content

Notifications

Community site session details

Community site session details

Session Id : Jq97eG0hcEy4oU37S0cwA7
Power Apps - Building Power Apps

Display a default value in a Choices type field in the PowerApps form

Like (0) ShareShare
ReportReport
Posted on 10 May 2023 11:59:50 by 5

Good morning,

I created an application to manage non-conformities on a production site, an application based on a Sharepoint list.

 

From the home page of the app I gave the possibility to create 2 different types of NC: a supplier one and an internal one (with 2 different forms behind).

 

I would like the default value for the dropdown field "Type of NC" available in both forms (which in the Sharepoint list offers 3 possibilities) to be filled in automatically by "supplier" or by "internal" depending on the entry chosen in the home page.

Is this possible, please? Have you ever pushed an identical behavior into an app?

Everyhting I tried with the DefaultSelectedItems worked wrong.

 

Charlotte_Lyon_0-1683723463989.png

 

Thank you in advance for your help,

Charlotte

  • Customer self service portal Profile Picture
    5 on 11 May 2023 at 12:23:32
    Re: Display a default value in a Choices type field in the PowerApps form

    Hello @v-zhoqian-msft , 

     

    I had found the solution in another post, but yours did answer my need to. I used the following formula "{Value:"Fournisseur"}" or {Value:"Interne"} in the DefaultSelectedItems field of my edit forms and it worked just fine.

     

    Thank you for your reply.

     

  • Verified answer
    v-zhoqian-msft Profile Picture
    Microsoft Employee on 11 May 2023 at 03:33:07
    Re: Display a default value in a Choices type field in the PowerApps form

    Hi @Charlotte_Lyon ,

     

    Do you want the combo box in the second form to display the selected item of the combo box in the first form by default?

    The DefaultSelectedItems property of the second combo box should be: combobox1.SelectedItems

     

     

     

     

    Best Regards,

    Habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started