Monday, June 24, 2013

Create a newLine for texboxes in InfoPath

     While working with SharePoint I came across with the chance to work with InfoPath forms. Microsoft InfoPath have a great integration with SharePoint, which makes easier to fill forms and display different fields on a SharePoint library. However I had some problem trying to display a summary of different text boxes fields in a new one to show comments on different sections of a form. Here is a summary of what I did to solve it:

1. Create a XML file with the following code:

<?xml version="1.0"?>
<linebreaks>
     <newLine>&#xA;</newLine>
</linebreaks>

** I used NotePad++ to create the file and saved it as "newLine" **

2. You need to save it somewhere on your sharepoint site and get the link of the file.










3. Create a new data connection on your infopath form.































Finally name your connection! In this case, its named "newLine"

4. Go to the text box properties.

5. At the value field, click on the "Insert Formula" button and click insert field or group:









6. On the next screen, chenge from the Main connection to the newLine connection and choose the newLine field. This will let you add a new line each time you use it.




































That's it! Enjoy!

No comments:

Post a Comment

Know us

Our Team

Contact us

Name

Email *

Message *