cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Skilled Sharer
Skilled Sharer

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
Highlighted
Power Apps
Power Apps

Re: How to remove extra space/value from Choice Box

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
Highlighted
Power Apps
Power Apps

Re: How to remove extra space/value from Choice Box

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,834)