Adding New Line To Text Box - InfoPath Dev
in

InfoPath Dev

Adding New Line To Text Box

Last post 10-02-2007 12:08 AM by Kalyan Gaddam. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 10-01-2007 07:32 PM

    • Sunny
    • Not Ranked
    • Joined on 08-17-2007
    • Posts 7

    Adding New Line To Text Box

    Hi,

     I am trying to show a message in a textbox on a InfoPath from (2003) using vbs. Following is my code

      msg = "The following fields are mandatory: " & VbCrLf

      msg = msg & "Field 1" & VbCrLf

      msg = msg & "Field 2"

      XDocument.DOM.selectSingleNode("...").Text = msg

     

    The output that I get is : The following fields are mandatory: Field 1 Field 2

    But I want the output to be: The following fields are mandatory:

                                            Field 1

                                            Field 2

     

    I have tried looking for posts with similar questions but was unable to find any, maybe I missed something.

     I would really appreciate any help

     Thanks in advance!

  • 10-01-2007 07:57 PM In reply to

    Re: Adding New Line To Text Box

    Make sure multi-line is enabled on your textbox, it is not on by default. Bring up the textbox properties in Designer, make sure "Multiline" is checked in the Display properties (in IP2007).

    David Airapetyan / Software Services Architect
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 10-01-2007 08:31 PM In reply to

    • Sunny
    • Not Ranked
    • Joined on 08-17-2007
    • Posts 7

    Re: Adding New Line To Text Box

    Hi,

    I am actually using Infopath 2003 not 2007...

    So any ideas on how to do it with IP2003?

     Thanks in advance!

  • 10-01-2007 09:09 PM In reply to

    • Sunny
    • Not Ranked
    • Joined on 08-17-2007
    • Posts 7

    Re: Adding New Line To Text Box

    Hi,

    I actually figured it out.

    In IP2003 the "Paragraph Break" check box has to be enabled. It can be found under "Display" tab.

    Cheers,

  • 10-02-2007 12:08 AM In reply to

    Re: Adding New Line To Text Box

    Glad that you figured it out and sharing it

    Kalyan G Reddy
    Infopath MVP 2007 and 2008
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.