Word Wrap InfoPath Browser Form for Multiline textbox - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Word Wrap InfoPath Browser Form for Multiline textbox

Last post 10-05-2018 08:34 AM by Ling Yu. 17 replies.
Page 2 of 2 (18 items) < Previous 1 2
Sort Posts: Previous Next
  • 09-19-2017 07:36 PM In reply to

    Re: Word Wrap InfoPath Browser Form for Multiline textbox

    Hello Priya, Thank you for the work around, but when you implement this work around, if the creator has added some forced formatting in the original text field ( say even the Carriage return) , it gets removed in the resulting RTF.. Have you noticed it ?? refer to my example below.. The Text entered by the creator before submitting is as below My Demographic details are : - Name: Test User - Country : Australia - Position : test user And here is the resulting RTF field My Demographic details are : - Name: Test User - Country : Australia - Position : test user Hope it makes sense.. Let me know if you have figured out any way out for this
  • 09-20-2017 07:38 AM In reply to

    Re: Word Wrap InfoPath Browser Form for Multiline textbox

    Hi, I found a simple fix. Use a multi-line text box in your InfoPath form and enable it's height to auto and width to 100%. Upload the below custom CSS file in SharePoint design manager and apply this to the whole site, so that this CSS rule works for any InfoPath form within your SharePoint site. textarea { white-space: pre-wrap !important; word-wrap: break-word !important; } Hope you'll find this useful !! Thanks.
  • 10-05-2018 08:34 AM In reply to

    Re: Word Wrap InfoPath Browser Form for Multiline textbox

    Here is my solution, hope it helps. The InfoPath form is being rendered on page such as: http://serverName/_layouts/FormServer.aspx. This page locates at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\FormServer.aspx. We need to inject the below CSS code in the header section of the page, to force the textarea automatically wrap regardless. style type="text/css" textarea{white-space: pre-line !important;} /style Same code to be added into C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\PrinLoader.FormServer.aspx, so that the print view will behave the same way.
Page 2 of 2 (18 items) < Previous 1 2
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.