You are here: Getting Started > Tutorials > Tutorial 1: Creating a Time Off Request Form > T1-11. Adding Requester name and date to a form

Tutorial 1–Step 11: Adding Requester Name and Date

You can further improve your Time Off Request form to automatically include the name of the person submitting the Time Off Request and the current date.

  1. Sign in as Steve Designer.
  2. In Designer, on the File menu, point to Open, and then click Retrieve Solution.
  3. Specify the CENTRAL site URL, and click OK.
  4. In the Solution list, select the solution, and then click OK.
  5. Click Controls on the right side.
  6. Scroll to the Custom Controls area. Click ShareVis.CurrentUser to add the control to the form.
  7. Double-click the ShareVis.CurrentUser icon on your form.
  8. In the ShareVis.CurrentUser Properties dialog box,click the Current User Info tab.
  9. In the Full Name XPath box, type requestor.
  10. In the Current Date XPath box, type currentDate.

  11. Click OK.
  12. Save your changes in InfoPath.
  13. Close InfoPath.
  14. In Designer, save the solution.

The new form appears and the Requestor field is automatically filled out with Steve Designer’s name (since he is currently logged in), and the current date appears in the Current Date field.