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 / Combine Dropdown texts...
Power Apps
Answered

Combine Dropdown texts populated from an Excel Sheet to a string

(0) ShareShare
ReportReport
Posted on by 14

Hello Everybody, 

 

I want to generate a string made out of some input texts and dropdown values populated out of an excel sheet.

Example {TextInputName} has {DropdownEyecolor} eyes and {DropdownHaircolor} hair.

 

The eye and hair colors are listed in an excel sheet and I see them im my dropdowns. Really great.

 

The string should be shown in a final text input field. If I enter dropdown.selectedtext in the textinput.default, I get the error that textinput wants a text value.

 

I also tried dropdown.selected.value and dropdown.selected.result and all other combinations I could find in this forum. 

I also tried to have my hair and eye colors in an sharepoint list. Same result.

 

How can I use these variables in a default text of an input field?

 

Thank you for your help!

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    SpongYe Profile Picture
    5,905 Super User 2026 Season 1 on at

    Hi @Kampagnenmeiste 

     

    Create 2 variables:

    // DropdownEyecolor.OnChange
    Set(varEyecolor, DropdownEyecolor.Selected.Value)
    
    // DropdownHaircolor.OnChange
    Set(varHaircolor, DropdownHaircolor.Selected.Value)

    If your text input field is named TextInputName:

    TextInputName.Text & " has " & varEyecolor & " eyes and " & varHaircolor & " hair."

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • Verified answer
    Kampagnenmeiste Profile Picture
    14 on at

    Hello @SpongYe , thank you for your fast response. I understood the approach, needed to change the code and found a solution.

     

    I needed to change:

    //onchange 
    Set(varEyecolor; Eyecolors.Selected) 

     

    In my current config the eyecolor is stored in a sharepoint list; the haircolor is stored in an excel. So the textinput looks like

     

    TextInput1 & varEyecolor.Title & varHaircolor.Tablename

    This works for me. Thank you @SpongYe for guiding me.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 395

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 287 Super User 2026 Season 1

Last 30 days Overall leaderboard