Adding a semicolon between words? - InfoPath Dev
in

InfoPath Dev

Adding a semicolon between words?

Last post 06-19-2012 01:04 PM by kasobus. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-19-2012 09:10 AM

    Adding a semicolon between words?

    The data below is being pasted into a text box. Then when the user switches to the next view (via button) a text box will be in it's place but will reformat the data...   INPUT FIELD NAME: Groups-Users    NAMG_DEDocs_Authors     NAMG_DEDocs_Invoice_Authors     NAMG_DEDocs_Invoice_UserAdmin     **DESIRED OUTPUT** FIELD NAME: Formatted-Groups-Users NAMG_DEDocs_Authors;     NAMG_DEDocs_Invoice_Authors;     NAMG_DEDocs_Invoice_UserAdmin;    If someone can help me do this that would be great! Thanks! -Kyle
  • 06-19-2012 11:16 AM In reply to

    Re: Adding a semicolon between words?

    Perhaps the replace() function will work in your case?  Just replace all instances of spaces (" ") with semicolons (";").  Hopefully that will work for you.
    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

  • 06-19-2012 12:33 PM In reply to

    Re: Adding a semicolon between words?

    I tried that and it adds like 5 semicolons. :( If there is a way to add then and then remove all but 1, I would be fine with that too.
  • 06-19-2012 01:04 PM In reply to

    Re: Adding a semicolon between words?

    SOLUTION: In case anyone else has this question I figured it out! translate(normalize-space(Groups-Users), " ", ";") Remove the spaces which for some reason does not remove all spaces then translate that one space in a semicolon! :)
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.