cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Solution Supplier
Solution Supplier

How to remove extra space/value from Choice Box

Hi All,

 

I have a string which is having value like : (in fig 1)a nd I have a choice field on which I its value display with blank values

 

Error.png

 

I used split function - Split(TextInput2.Text,",")

 

I want result to be only with values

a

b

c

1 ACCEPTED SOLUTION

Accepted Solutions
Power Apps
Power Apps

You can Filter the result of the Split function to return only those entries that are not blank. For example, the expression below returns only those that are not blank or whitespaces only:

Filter(
    Split(TextInput2.Text, ","),
    Trim(Result) <> "")

View solution in original post

1 REPLY 1
Power Apps
Power Apps

You can Filter the result of the Split function to return only those entries that are not blank. For example, the expression below returns only those that are not blank or whitespaces only:

Filter(
    Split(TextInput2.Text, ","),
    Trim(Result) <> "")

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (51,658)