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 / Canvas Apps - Split wi...
Power Apps
Answered

Canvas Apps - Split with delimiter and get individual string values

(0) ShareShare
ReportReport
Posted on by 83

Dear All,

 

I'm new to Power Apps so the question may seem basic.

I'm fetching a dynamic string from DB which is having slashes in between for example "A/B/C/D/E" now I want to split this using delimiter (slash in this case) and get "individual" values like, "A", "B","C","D" & "E" and then set it to the individual textboxes on page. (I'm having 5 textboxes on the page)

 

I am using split function but it's giving me table values which I can set to dropdown but unable to take individual string values from this.

 

Can you please help?

 

Thanks & Regards,
Sanjay Adsure

Categories:
I have the same question (0)
  • Verified answer
    shoog Profile Picture
    2,164 on at

    You can use the Index function to get a specific element from an array, so for example if you assign the split outcome to a variable varSplitString, you would use

     

    Index(varSplitString, 2)

     

    would get the second row from the split.

     

    If you want to make it more dynamic, you could create a gallery with the checkbox inside it, use the variable as Items for the gallery and set the checkboxes according to the items in the gallery.

  • rb Profile Picture
    835 Super User 2024 Season 1 on at

    Assuming you know that there will always be 5 values for your 5 text boxes, you can collect your 'Split()' using 'ClearCollect()' and then reference using 'Index(x, x).Result'

     

    Example:

    Button:

    ClearCollect(colSplits, Split("A/B/C/D/E", "/"))

    Text Boxes:

    Index(colSplits, 1).Result

    metsshan_0-1658816731148.png

     

    Now, if the number of values is not known, I would recommend looking in to Galleries/Collections and exploring other tutorials and documentation online which covers the handling of dynamic data sets.

  • SanjayAdsure201 Profile Picture
    83 on at

    Dear @shoog ,

     

    Thank you very much! 🙂

     

    Thanks,

    Sanjay

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard