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 / Default Text in Dropdown
Power Apps
Answered

Default Text in Dropdown

(0) ShareShare
ReportReport
Posted on by 2

Hello, 

 

I'm quite new with powerapps.

 

I'm building a application based on a sharepoint list. I would like to populate a default Main Dropdown with the result of 4 others Dropdowns formatted in a specific way that match my main Dropdown.

 

Please find bellow the form : 

 

Result.JPG

 

Secteur, Batiment, Zone, Poste are generating a text field (the top Test Value). this is done like this :

Drop_Secteur.Selected.Value & "_" & Drop_Bat.Selected.Value & "_" & Drop_Zone.Selected.Value & "_" & Drop_Poste.Selected.Value

this is working well, i want to put this result directly in the number 1 DropDown.

 

the best i was able to do was to change the Item field of the Number 1 Dropdown like this :

 

[(Drop_Secteur.Selected.Value & "_" & Drop_Bat.Selected.Value & "_" & Drop_Zone.Selected.Value & "_" & Drop_Poste.Selected.Value)]

It gave the user the possibility to have only one choice, the one that i want.

 

But this solution doesn't satisfy me, i want to simplify this as much as possible for the user.

 

thanks for your help 🙂

 

 

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

    @Crimcrow 

    A dropdown implies that you have multiple values and the user will select one of them. 

    I am not understanding what the purpose of the DropDown is in this case.  I see that you are making the dropdown value the combined result of the other dropdowns, but what is it that you want in the DropDown 1 for selections?

    Only 1 item?  Or, is there an underlying source of items for that DropDown and one of the items in that list of items would happen to be the combined values of the other dropdowns?

  • Crimcrow Profile Picture
    2 on at

    Humm you're right.

    I was thinking to use this trick because i don't know how to submit in a form something like this for a field:

     

    Drop_Secteur.Selected.Value & "_" & Drop_Bat.Selected.Value & "_" & Drop_Zone.Selected.Value & "_" & Drop_Poste.Selected.Value

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Crimcrow 

    Okay...let's focus on that part.  

    What is the field/column in your list that you want this information to go into?

     

    If it's a text column, then it's pretty straight forward.  You would simply have that text column in your EditForm and then unlock the DataCard and change the Text property of the textinput control (that will come with your DataCard) to the formula and the results you desire.  In this case, the combination of the selections of the other drop down lists.  Then when the record is recorded back, it will simply be recorded as you have specified.  

    Since you are "forcing" this field value when you are creating a new item, you will want to put the logic in the formula to determine if you are doing a "new" item, or editing/viewing an existing item - in which case, you'd want to display the actual field/column value instead.

    The questions that will determine your proper formulas will be:

    1) Is the value for this column recorded at the time of creation only (view only after item is created)

    2) Is the value for this column changable after the record is created (editable after item is created)

     

    So, give some of that a shot and if you still run into problems, feel free to post back.

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Crimcrow ,

    Could you please share a bit more about the issue that you mentioned?

    Do you only want to display one item (combined result) within the Number1 Dropdown?

    Further, which column do you use to store the Number1 Dropdown value within your SP list data source?

     

    I assume that you only want to display one item (combined result) within the Number1 Dropdown, and want to patch this Number1 Dropdown value into your SP list, is it true?

     

    If you want to patch this Number1 Dropdown value into your SP list, I think the Patch function could achieve your needs. I have made a test on my side, please take a try with the following workaround:

    Set the OnSelect property of the "Submit" button to following formula:

    Patch(
     'YourSPList',
     Defaults('YourSPList'),
     {
    ..., ZoneFiled: Number1Dropdown.Selected.Value, /* <-- ZoneField represents the Text type field in your SP list, which used to store the Number1 Dropdown value */
    ... } )

    Note: I assume that you use Text type column in your SP list to store the Number1 Dropdown value.

     

    If you use Choice type column to store the Number1 Dropdown value, please modify above formula as below:

    Patch(
     'YourSPList',
     Defaults('YourSPList'),
     {
    ..., ZoneFiled: {
    Value: Number1Dropdown.Selected.Value
    }, /* <-- ZoneField represents the Text type field in your SP list, which used to store the Number1 Dropdown value */
    ... } )

     

    In addition, if you use the SubmitForm() function to submit your form data, you could also consider take a try with the following workaround:

    Set the Update property of the Zone Data card to following:

    Number1Dropdown.Selected.Value

    Set the Default property of the Number1 Dropdown control to following:

    Table(ThisItem.ZoneField)

    Note: I assume that you use a Text type column in your SP list to store the Number1 Dropdown value.

     

    More details about Patch function in PowerApps, please check the following article:

    Patch function

     

    Best regards,

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!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard