Hi there,
I have a webbrowser InfoPath form which has a button.
I use the rule of the button to add text to a text box. I need line break at each button clicking. (I cannot use C# code since this form will work with K2.)
In the rule, I use "concat" function as "concat(field3,now(),"----",@crlf)".
@crlf is from a xml file data connection.
<?xml version="1.0" encoding="UTF-8"?>
<characters
cr="
"
lf="
"
crlf="
"
/>
It works until there is a web page post back.
i.e, I clicked the button a couple of times, the text box looks good. it is like:
2013-02-20T12:27:27-----
2013-02-20T12:27:28-----
2013-02-20T12:27:31-----
Then I uploaded a file to the form, the line break is gone from the text box. it is like:
2013-02-20T12:27:27----- 2013-02-20T12:27:28----- 2013-02-20T12:27:31-----
After that, there is no line break if clicking button again.
If I save it, and reopen it, there is no line break. But clicking button will add line break to new lines until another page post back.
I tested this with a very simple form without K2. It still happens.
How to fix this issue?
Thanks,
David
I