Showing results for 
Search instead for 
Did you mean: 
Helper V
Helper V

With Function

Need help on With code.

I have 2 fields I need to put together in a string:
1) cbStrengthSelections.SelectedItems
2) iptAddStrength.Text


If there is no selection from cbStrengthSelections.SelectedItems, I just need to display iptAddStrength.Text.
If there are items from cbStrengthSelections.SelectedItems. I need to display those and separate using a semicolon ;


Thx for any assistance

Super User
Super User


Yes, your formula has issues and seeing what you have clarifies what you are trying to do.

Your formula should be the following:

   Concat(cbStrengthSelections.SelectedItems, 'Strengths (Strengths)' & "; ") & iptAddStrength.Text


If there are no selected items it will just be the value of iptAddStrength.Text.  If there are selected items, then they will be first with semi-colon separation and then the value of iptAddStrength



Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

Amazing, Randy! Thx so much for your patience with me. This will help me going forward as well.


Thx again.

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,410)