Hi Ernesto,
You slution might help me but I couldn't seem to implement it successfully. Here's my scenario- I have got a web Infopath form with 3 different views. Requestor view, Approver view, Clearer view.
When the form loads, it launches Requestor view and i made user type in his username. After he submits the form, there's a custom workflow that goes to the concerned approver. When an approver opens the form, there's a field by Name ApproverUserID. On its value property, i used username().However when an approver opens the form, it holds the userid of the person who filled in the request, whereas it should be the approver's username. Though I set to automatically refresh on calculation che ckbox, it holds the username of filler.
I want ApproverUesrID field to hold the name of the person who opens it. Not the username who filled out the form. Because I have to properly audit who approved the request form. Any idea on how do I achive it. Its going to be useful to me because once the form is approved, workflow routes it to Clearer. Clearer on opening the form should see Clearer's username in the new field in clearer view by name Clearer UESRID.
Any idea? Thanks.