Issue with Multiline TextBox

N

Nirav

I am facing a strange issue with Textbox control with multiline and paragraph
break property enabled. I am using Infopath 2007. The first time Infopath
Form gets opened the textbox works perfectly fine as multiline textbox but
after I close it for all subsequent times it doesn't work as multiline
textbox. It doesn't add a new line when I press enter. all text is shown in
single line only. Can someone please help me?
Here is the code

manitest.xsf:

<xsf:xmlToEdit name="value_85"
item="/cp:domain/cp:config/cp:sources/cp:source/cp:parameters/cp:parameter/cp:value" viewContext="CTRL174">
<xsf:editWith type="plainMultiline"
component="xField"></xsf:editWith></xsf:xmlToEdit>

View1.xsl:

<div>
<span class="xdTextBox" hideFocus="1" title="" xd:xctname="PlainText"
tabIndex="0" xd:CtrlId="CTRL174" xd:binding="cp:value"
xd:datafmt=""string","plainMultiline""> <xsl:attribute
name="style">OVERFLOW-Y: auto; OVERFLOW-X: auto; WIDTH: 100%; WHITE-SPACE:
normal; WORD-WRAP: break-word; HEIGHT: 50px;<xsl:choose>
<xsl:when test="@cp:type !=
"System.Collections.Specialized.StringCollection"">DISPLAY: none;</xsl:when>
</xsl:choose></xsl:attribute><xsl:choose>
<xsl:when
test="function-available('xdFormatting:formatString')"><xsl:value-of
select="xdFormatting:formatString(cp:value,"string","plainMultiline")"
disable-output-escaping="yes"/></xsl:when>
<xsl:eek:therwise><xsl:value-of select="cp:value"
disable-output-escaping="yes"/></xsl:eek:therwise>
</xsl:choose></span>
</div>

I am blocked on this strange behaviour. Kindly guide me if any of you have
faced such issue.
 
A

Anuma(GGK Tech)

Hi,

Are you using any "normalize-space(.)" function in the rules for that field.
 
S

Shiva (GGK Tech)

Hello,

Did you directly drag and drop the text field from controls or not? If you
copied from existing text box then you might be get this issue. Can you
remove the existing the text box and add the new text box then check once
still you are getting error or not?

Do you have any code for this field?
 
Top