You are viewing limited content. For full access, please sign in.

Question

Question

How to display who is currently logged in to the form

asked on July 11, 2018

Hi All,
I have assigned “{/_currentuser_display}” as a default value for a Current User Name field.   I need the Current User Name field to show the name of the current user who is working on the form. 

 The form is assigned to a person A after initial form submission.  Once Person A is done working on the form, the form is then assigned to Person B.

Through the life of form, the Current User Name field is stuck to the name of the person who initiated the form.  

Is there any way to display who is currently logged in to the form and hence using the form.

Thanks
 

1 0

Replies

replied on July 11, 2018

Naveed, I do this on all my forms so that when a user checks a box it shows their name in a field to show who did the task, because some of the forms have different users doing different tasks on the same form section before submission.  They just save a draft and reassign it to the next person.  The way I have the current user displayed in the user name field is via a user table I setup in SQL.  Each row only has two things, the user's display name, such as CLS\Rick.Nagy, and the user's name (Rick Nagy).  Simply put a field on your form with something like 'Currently Logged in User' for the name.  My two values in the table are 'user_name' for the display name and 'empSiggy' for the employee's actual name.  Here is the lookup rule:

This will always fill the box with the current user, rather than the user who was working on it before.  If you want to keep track of all users, have a name field for each task, and add a javascript function to put the current user name in the field when a box is checked, for example.

 

Rick

2 0
replied on May 29, 2023

Rick, would you be willing to share your JavaScript on this?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.