You are here: Reference Guides > Designer Form Controls (A-Z) > Ws.CurrentUser

Ws.CurrentUser

The Ws.CurrentUser control allows you to capture details related to the user who is currently working on the form. In addition, you can enable Auto Refresh to force-update the fields with the Current User with the form open. This is most useful if you don’t require the Current User Fields to always remain filled with the Originators information.

Download example (.wssln file)

Ws.CurrentUser Properties

Property

Description

Auto Refresh

Forces an update of the specified field(s) regardless of the field contents.

Current Date XPath

The form field that will receive the current date.

Email XPath

The form field that will receive the email of the current user.

Full Name XPath

The form field that will receive the full name of the current user.

Login Name XPath

The form field that will receive the login name of the current user.

Task Description XPath

The form field that will receive the current task's description.

Task Name XPath

The form field that will receive the name of the current task.

User ID XPath

The form field that will receive the internal SharePoint ID of the current user.

User Name XPath

The form field that will receive the user name (the login name without the domain qualifier) of the current user.

Ws.CurrentUser example

Note: If you require additional user information, use the Ws.Query Control and use the User Profile option.

Ws.currentuser configuration