That was a tricky one.
I have a textbox on an InfoPath 2010 form, into which, I want to display multiple lines of text.
Obviously, I set the field to allow multiple lines (textbox properties > display > multi-line) and then go back to input the text in the “Value” field on the “Data” tab of the textbox properties.
It doesn’t work.
As soon as I click on Enter, Shift+Enter, Control+Enter, …, the properties window closes. The default value of the textbox is set to whatever I have typed before pressing the Enter button.
It appears that only the following works:
Start a text editor.
Type in string(“”).
Between the quotation marks, enter the text that you want to display in the textbox field, exactly the way that you want it to be displayed (ie. in multiple lines).
Select and copy the entire thing.
Go back to your InfoPath form, click on the textbox properties, click the function button (fx) next to the default value field.
Paste into the function field everything you copied earlier.
Hit OK.
Problem fixed!
I finally got this to work.
Thank you very much for your post.
You’re very welcome Pedro. Happy to have been of help!
Great one! Nice post!
Nice!! Thank you!! 😀