Removing a comma from Concat Function - InfoPath Dev
in

InfoPath Dev

Removing a comma from Concat Function

Last post 08-06-2012 09:28 AM by Anson Hidajat. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 07-31-2012 11:54 AM

    Removing a comma from Concat Function

    I have a concat function in one of my fields that displays two items - com name and com title (e.g., Social Committee, Chair). However, if the "Title" is blank it doesn't display the title (e.g., Social Committee,). How can I make it so that the comma (", ") doesn't appear if the "Title" is blank so that it looks like this when the "Title" is blank (e.g., Social Committee)?

    concat(comName, ", ", comTitle[. != ""])

    Any help would be appreciated.

  • 08-03-2012 03:28 PM In reply to

    Re: Removing a comma from Concat Function

    You want to only display the comma if comName is not blank.  Try using this formula:

    concat(comName, substring(",", 1, (comName != "") * 1), comTitle[. != ""])

    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

  • 08-06-2012 06:56 AM In reply to

    Re: Removing a comma from Concat Function

    That works perfectly - thanks so much!

  • 08-06-2012 09:28 AM In reply to

    Re: Removing a comma from Concat Function

    Awesome, glad I could help!
    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.