Question : InfoPath -  CONCAT, Line break and copying user comments into a repeating table each time a new user adds comments in a browser-enabled field

I have a form with a field called 'Comments'

On submit, I want to write comments from 'Comments' field into the History field(s).

My initial thoughts were to contacatenate now(),userName()," ",Commnets but haven't be able to find a way to insert line breaks, so this looks bloody ugly!

After giving it some thought I figured that I would like for Comments to added to a new row in the repeating table with the fields "UserComment", "Date" and "User".

Is there a way of doing this so that a new repeating line is forced after each save, rather than INfoPaht overwriting what' already there?

 section of the field.

I've been tr

Answer : InfoPath -  CONCAT, Line break and copying user comments into a repeating table each time a new user adds comments in a browser-enabled field

check this out for simple code to add a row to a repeating table on a button click:
http://aspalliance.com/667_CodeSnip_Add_Row_to_InfoPath_Repeating_Table_on_Button_Click

Naturally, you will have to change this depending on how you have set up your repeating table.

Hope this helps....
Random Solutions  
 
programming4us programming4us