web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Storing checkbox value...
Power Apps
Unanswered

Storing checkbox values as a string

(0) ShareShare
ReportReport
Posted on by 774 Moderator

Hi, 

I'm trying to find a way to limit the number of columns in my sp list. I have 5 questions (y/n) which are answered by ticking the checkbox control, I was thinking about collecting all the results and putting it in a text column as a string with delimiters, the problem starts when I think about extracting the result back to the form, I thought I could use Split() for that but I'm not sure how to extract mid string values and I'd rather not create if() with all possible combinations.

Is there a way of reading what's after lets say 3rd delimiter?

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    HI @elseb ,

    I am not sure why you would want that complication, but yes, Split would do it

    Last(
     FirstN(
     Split(
     YourTextField,
     ","
     ),
     3
     )
    ).Result

    would get you  the third item

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Verified answer
    timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    @elseb 

    After you call Split, you can call the index function to retrieve the value by ordinal number.

    Let's take the following input string:

    Set(strInput, "y,n,n,y,n")

    This will return the 3rd value (eg 'n')

    Index(Split(strInput, ","), 3).Result

     

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    @timl ,Yep - forgot about the new Index function - @elseb both of these will work.

  • elseb Profile Picture
    774 Moderator on at

    Thank you both, just what I needed! I think I will go Index as it looks neater to me.

     

    Seb

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard