How to create empty characters - InfoPath Dev
in

InfoPath Dev

How to create empty characters

Last post 03-04-2014 07:45 AM by Jimmy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-04-2014 07:07 AM

    • Koen87
    • Not Ranked
    • Joined on 03-04-2014
    • Posts 1

    How to create empty characters

    Hello,

    I have an InfoPath form with some data connections to SharePoint lists. I concatenate several fields into 1 field. Example:

    Field1 = 45
    Field2 = 66
    Field3 = 00

    So concatenated, Field4= 456600

    Sometimes, Field2 is empty. Then I get Field4= 4500. But that's not what I need, Field4 needs to be 6 characters long! So I want it to be 45  00. Is this possible?

  • 03-04-2014 07:45 AM In reply to

    Re: How to create empty characters

    This should do it:

    concat(Field1, substring(concat(Field2, "  "), 1, 2), Field3)

     

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.