Concat and Trim - InfoPath Dev
in

InfoPath Dev

Concat and Trim

Last post 10-01-2012 09:38 AM by samonenate. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-27-2012 09:50 AM

    Concat and Trim

    I am using the Contact Selector control to pull names from a SharePoint user list.  The names are populated as Doe, John K.  I have a concat formula in a text box to make the name appear as John K Doe.  My problem is the Contact Selector adds an unnecessary space after the name so my text box begins with a space in front of the first name so I get " John K. Doe" instead of "John K Doe".  Is there a way to use concat and trim to remove the extra space? 

    My text box formula is: concat(substring-after(DisplayName, ","), " ", substring-before(DisplayName, ","))

  • 09-28-2012 05:31 AM In reply to

    How about changing the first "," to ", "?
    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 10-01-2012 09:38 AM In reply to

    Your solution worked perfectly!! Thank you.
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.