Insert line break when concat two fields - InfoPath Dev
in

InfoPath Dev

Insert line break when concat two fields

Last post 10-01-2015 09:08 AM by sadeep. 10 replies.
Page 1 of 1 (11 items)
Sort Posts: Previous Next
  • 08-28-2008 05:00 AM

    • jeeva
    • Top 150 Contributor
      Male
    • Joined on 07-18-2008
    • Bangalore
    • Posts 79

    Insert line break when concat two fields

     Hi,

    I created a Infopath form to concat two textbox values in to another textbox.My Problem is how to get the following thing

    Textbox1=Hello

    Textbox2=Mornin

    Teextbox3=Hello

                     Morning

     

    i use concat function to concat the two textfields but i dont know how generate the Line break between two textboxes values.

    Filed under:
  • 08-28-2008 05:58 AM In reply to

    • Anuma
    • Top 25 Contributor
      Female
    • Joined on 07-20-2005
    • India
    • Posts 525

    Re: Insert line break when concat two fields

    Hi,

    Can you please verify the following link.

    http://blogs.msdn.com/infopath/archive/2005/03/04/385577.aspx

    Use the follwoing formula: concat(Textbox1, @crlf, "Textbox2")

    I hope this will help you.

    Anuma Chinthapalli /
    http://www.GGKTech.com
  • 08-28-2008 09:06 PM In reply to

    • jeeva
    • Top 150 Contributor
      Male
    • Joined on 07-18-2008
    • Bangalore
    • Posts 79

    Re: Insert line break when concat two fields

     Hi Anuma,

    I followed that link,now its working perfectly.

    Thank u very much

    Regards

    Jeeva

  • 09-01-2008 09:44 PM In reply to

    • jeeva
    • Top 150 Contributor
      Male
    • Joined on 07-18-2008
    • Bangalore
    • Posts 79

    Re: Insert line break when concat two fields

     Hi Anuma,

    If i publish this form it will not working.how can i change this into Browser compatbility form.

  • 09-02-2008 12:52 AM In reply to

    • Anuma
    • Top 25 Contributor
      Female
    • Joined on 07-20-2005
    • India
    • Posts 525

    Re: Insert line break when concat two fields

    In the Testbox3 properties, select “MultiLine” check box in the data tab.

    This is worked for me  in browser forms when I check the Multiline check box

    Anuma Chinthapalli /
    http://www.GGKTech.com
  • 09-02-2008 01:54 AM In reply to

    • jeeva
    • Top 150 Contributor
      Male
    • Joined on 07-18-2008
    • Bangalore
    • Posts 79

    Re: Insert line break when concat two fields

     Hi Anuma,

    I followed your tips but its not working.The Two textfields values are display inn same line.

  • 09-02-2008 02:08 AM In reply to

    • Anuma
    • Top 25 Contributor
      Female
    • Joined on 07-20-2005
    • India
    • Posts 525

    Re: Insert line break when concat two fields

    Did you check the Multiline property for Textbox3?

    Anuma Chinthapalli /
    http://www.GGKTech.com
  • 09-02-2008 05:03 AM In reply to

    • jeeva
    • Top 150 Contributor
      Male
    • Joined on 07-18-2008
    • Bangalore
    • Posts 79

    Re: Insert line break when concat two fields

     Hi Anuma,

    I checked multiline option for Textbox3.While i see in Preview it is working but in Browser mode itis not working.

     

  • 05-13-2010 12:44 AM In reply to

    Re: Insert line break when concat two fields

    I see you've offered the same advice in about 5-6 questions all asking the same thing, but this does not work in browser enabled forms (when accessed in the browser and not via the infopath client) even if the text box is multi line.  Am I missing something?
  • 12-22-2010 08:52 PM In reply to

    Re: Insert line break when concat two fields

    This works beautifully...until I submit the form. It inserts the lin breaks beautifully but for some reason when I submit the form all the information appears on the same line.

  • 10-01-2015 09:08 AM In reply to

    • sadeep
    • Not Ranked
    • Joined on 10-01-2015
    • Posts 1

    Re: Insert line break when concat two fields

    A bit late but for the benefit of those that across this. Follow the following steps. Example say you want to break lines for "Hello World" between the two words. Then go to note pad and type the following. concat("Hello"," ","World") Then copy this to the insert formula section in the default value of the field in the infopath form. This should do it. What you do it you add the invisible line break character to the concatenation by pressing Enter between the " and ". I have not yet tested this in the browser though. Hope this will help.
Page 1 of 1 (11 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.