I have form in infopath where I have created a text box which copies the content and pastes on to different field, when pushed a button. Rules behind the button
concat(Usernameafter, " : ", beforenow, " ", afternow, " ", NewLine, Break, Comments)
where in username after is a hidden field in the form which has a default value
substring-after(userName(), "i:0#.f|membership|")
and before now and after not are also hidden field which has default values set
substring-after(now(), "T")
substring-before(now(), "T")
and comments the field where I am displaying the comments entered I the field in “newline” and break is connection that I have created to break the line.
Now the problem is that no matter who edits the file it always shows the person who has created the file not the person who is editing it.