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 / Splitting text to a co...
Power Apps
Answered

Splitting text to a combobox field

(0) ShareShare
ReportReport
Posted on by 83

I have a combobox field, where Item property seems like this:
[{Text:"perc";Val:"perc"};{Text:"óra";Val:"óra"};{Text:"nap";Val:"nap"};{Text:"hét";Val:"hét"}]

 

I would like to set it from a collection (from a Sharepoint list), where there are ('Időtartam' field) "2 nap", "3 óra", "1 hét" etc. values.
(Hungarian time variables)

My Default expression, which not working:
Last(Split(cbbEducation.Selected.Időtartam; " "))

 

Tried this as well:
{Text: Last(Split(cbbEducation.Selected.Időtartam; " "))}

 

Any idea how to modify it to work?

Categories:
  • Verified answer
    M_Ali_SZ365 Profile Picture
    1,110 on at

    Hi @ervinw ,

    Try THis

    To set the default selection in a ComboBox based on a value from another ComboBox that references a SharePoint list:

    DefaultSelectedItems: LookUp(
    YourComboBoxItems, // Replace with your ComboBox items array
    Text = Last(Split(cbbEducation.Selected.'Időtartam', " ")).Result
    )

     

     

    ____________________________________________________________________________________________________________________________

    If my post helped, please mark it as Accept as solution to help others find it. A Thumbs Up would also be appreciated if you found it useful. 

    Warm regards,
    Muhammad Ali

     

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at
  • ervinw Profile Picture
    83 on at

    It's a new one, just similar.

  • ervinw Profile Picture
    83 on at

    Thank you, that was the problem I used the Default field instead of DefaultSelectedItems.

    Thank you for the answer. You guide me to the solution.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard