How to forbid space trimming in text data? - InfoPath Dev
in

InfoPath Dev

How to forbid space trimming in text data?

Last post 04-20-2006 12:08 AM by Patrick Halstead. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 04-19-2006 01:31 AM

    • Sash
    • Not Ranked
    • Joined on 03-30-2006
    • Posts 15

    How to forbid space trimming in text data?

    Infopath removes white spaces from text data by default. For example, string "www <many spaces> ggg" is converted to "www ggg" in a text box. Is it possible to forbid to trim spaces?
  • 04-19-2006 10:20 PM In reply to

    Re: How to forbid space trimming in text data?

    Hi Sash,
    No kidding? This doesn't make any sense to me - it should absolutely not remove spaces since that is a data loss issue. Can you give us solid repro steps?
    Patrick Halstead
    Project Manager at Qdabra
  • 04-19-2006 11:58 PM In reply to

    • Sash
    • Not Ranked
    • Joined on 03-30-2006
    • Posts 15

    Re: How to forbid space trimming in text data?

    I have SQL 2000 table with varchar data column. Text data in this column may contain more than one seriated spaces. This table is used as data connection in Infopath and a repeating table is used to display data. Nothing unusual. Then, when the form is previewed, the data looks like "normalize-space" function was applied. I suppose it must be an option to turn this feature off, but I haven't found anything.
    Furthermore, you should not try data connection to check it. Now I just created new blank form, add a text box and typed such kind of text. The result is the same.
    I use Infopath with SP2.
  • 04-20-2006 12:08 AM In reply to

    Re: How to forbid space trimming in text data?

    Hi Sash,
    You are right! This is amazing. I can't believe I never saw this before. Shanthi told me that you can enable paragraph breaks to get the functionality you want. Looks like another option is rich text.
    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.