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 / Concat comboboxes to u...
Power Apps
Answered

Concat comboboxes to update text field

(0) ShareShare
ReportReport
Posted on by 249

Hello PowerApps Community,

 

      I am working on a checkout app that users need to set their length of time they will have an item checked out. I am using SharePoint Lists for my datasource. My Duration field is a text field. I have added two comboboxes to my data card named, Numerical and Interval. I am trying to have the users select a number from the numerical combobox and a value (days, months, week). When they submit their request I need the text field to show "x days" or "x weeks" or "x months". I have manually set the comboboxes items and they do show up.

When I use

Concat(Numerical.SelectedItems, Interval.Selected.Values) it only shows the interval item (days, weeks, months)

 

When I use Concat(Duration, Numerical.SelectedItems, Interval.Selected.Values) it shows both Numerical and Interval repeating (1week1week1week.......)

 

When I try

Numerical.SelectedItems & Interval.Selected.Values it shows false.

 

How can I get the number and (days, weeks, months) to show up in the text field? I am trying to make the PowerApp so that all responses follow a uniformed method and avoid, "I need it for awhile" or some other non definitive remarks.

 

Thanks in advance

Categories:
I have the same question (0)
  • Verified answer
    DylanSimons Profile Picture
    326 on at

    The concat() function does not do what you are expecting. it concatenates entire fields in tables. Instead what you are looking for is Concatenate().

     

    The reason that

    Numerical.SelectedItems & Interval.Selected.Values

     doesn't work is that you are passing variables that are not Text. It needs to be something like this in the end:

     

    Concatenate(Numerical.Selected.Value, " ", Interval.Selected.Value)

     

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @techtudoor 

     

    Concat function is used to concat values in a table. Since you want to concat selections, can you try to update the expressions to:

    Numerical.Selected.ColumnName&" "&Interval.Selected.ColumnName

    Here, you need to replace ColumnName with the name of column from the combobox. If it is static array, then the name of column will be value.

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

  • techtudoor Profile Picture
    249 on at

    Thank you @DylanSimons , concatenate worked perfectly. I have gotten away from using concatenate, that I forgot that it is still an option.

     

    Thank 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard