Step 2: Add a Requester Name with a Current User control

In this step we'll use InfoPath to add new fields to the form:

  • RequesterName
  • RequesterEmail
  • RequestDate

To add the new fields:

  1. In the Field List, right-click the Field and click Add.
  2. Make the RequestDate field a Date type field. The RequesterName and RequesterEmail fields can be text type fields.
  3. Also, add a section on the form called Requester Information where this information will be shown. Because we will populate these 3 fields automatically, make them Read Only on the Form.

  4. Add the custom control called WS.CurrentUser to the form.

    The CurrentUser control is an 'invisible' control that enables you to copy the name and other information about the currently logged on user and enter it into InfoPath Form fields.

  5. Open the properties for the CurrentUser control.

  6. Enter the names of the Form Fields into which the data will be captured. See the example below