line break inside infopath form (text field)

Hi--

I need to add a line break inside the formula field for my infopath text box, but it gives me a lot of hard time////

Could somebody help me please?

<br/>

<br>

/n

n/

none of them worked :(

here is my formula

concat("mailto:", DisplayName, ";", DisplayName, ";", DisplayName, ";", DisplayName, ";", qEmails, ";", concat("?subject=", Title/Project Name, " -->", Tax Current Health), concat("&body=", "Project description: ", Project Description, "Tax Current Phase: ", Tax Current Phase))

June 12th, 2013 9:51pm

Hi,

 

I understand that you want to add line break to a control using formula. Here are the detailed steps to achieve this:

  1. Create a xml file with the content like this:

        <?xml version="1.0" encoding="UTF-8"?>

        <characters

       cr="&#xD;"

      lf="&#xA;"

       crlf="&#xD;&#xA;"

     />

   2. In the InfoPath template, add a data connection to retrieve data from the xml file.

   3. Then you can use the @crlf to insert a line break like this concat("hello",@crlf, "word")

For more information, please refer to this site:

InfoPath - removing newline (CRLF) using rules: http://johnliu.net/blog/2011/11/22/infopath-removing-newline-crlf-using-rules.html

Thanks,

Entan Ming

Free Windows Admin Tool Kit Click here and download it now
June 13th, 2013 10:24am

I created "characters.xml" as a site asset in SPD.  Added it as a Data Connection in my InfoPath form.  Built a rich text box in InfoPath that has a default value of concat(field1,@crlf,field2).  Published the form, used it to create a new item.  No line break.  When the item that is created using the form appears in the SP list, field1+field2 are one long string.  Any ideas?  Thanks in advance.

June 25th, 2013 3:30am

The box should be defined as a text box and then the formula above is contained in the formula value. Also, make sure that on the Display tab within Properties the 'Multi-line' checkbox is checked.
Free Windows Admin Tool Kit Click here and download it now
May 8th, 2015 2:57pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics