Skip to main content

Exercise 3: Creating a user form on the Portal

Duration: 30 minutes

For this exercise, we will focus on exposing your newly created table on one of the employee portals so that your employees can easily access and create a travel request for themselves.

This is also known as a Record Producer in ServiceNow terminology.

  1. Click the App Home tab to return to the main view
  1. Click Add under Experience
  1. On the following screen, click Record Producer
  1. Click Begin
  1. On the ADD EXPERIENCE screen, enter Raise a travel request under Name, and Capture employee travel requests for description
  1. Click Continue
  1. Click Edit record producer
  1. Under Description, enter the following text: "Use this form to raise a travel request for all international flights. Approval will be routed to your manager."
  1. (Optional) Add an image if you wish (You can use anything you find online)
  1. On the left sidebar, click Destination
  1. We will define where this form will route requests to. Search and select Travel request. This is the table we first created.
  1. On the left sidebar, click Location. We will define which portal this form will be located in. A form can belong to multiple portals on ServiceNow
  1. On the main area, click Browse
  1. On the next screen, look for Service Catalog under the Available section and move it to the right
  1. Ensure that Service Catalog now appears in the Selected section
  1. On the bottom right, click Save selections
  1. Click Browse under Categories
  1. This time, do the same as before, and select Can We Help You? from the Available list
  1. On the bottom right, click Save selections
  1. On the left sidebar, select Questions
  1. Click on the dropdown arrow next to Insert new question, and click Single column container
  1. In the pop-up box, enter General Information under Title
  1. Click Submit
  1. Repeat the top 3 steps again, but this time select Two column container and enter Travel Details
  1. Expand the General Information section, click the + Insert icon, and select New question
  1. In the next form, fill it out as below

    NameSelection
    Question typeChoice
    Question subtypeDropdown (fixed values)
    Map to a specific field on the tableChecked
    Table fieldReason for travel
    Question labelWhat is the reason for travel?
    MandatoryChecked

  1. Click Choices
  1. Check Include none choice
  1. Under Available Choices, add the 3 reasons you added during table creation for Display name: Customer meeting, Internal meeting, Training
  1. Copy each of these onto the Value column as well (Both Display name and Value will be the same)
  1. On the bottom right, click Insert Question
  1. Expand the Travel Details section
  1. On the left column, add a New question
  1. Fill out the form as follows

    NameSelection
    Question typeDate / Time
    Question subtypeDate
    Map to a specific field on the tableChecked
    Table fieldDeparture date
    Question labelWhen are you leaving?
  1. Click Insert Question at the bottom right
  1. Repeat the steps above again for Return date

    NameSelection
    Question typeDate / Time
    Question subtypeDate
    Map to a specific field on the tableChecked
    Table fieldReturn date
    Question labelWhen do you return?
  1. Now we will capture the locations by looking at the Airport table we created
  1. Under the same Travel Details section, add a new question

    NameSelection
    Question typeChoice
    Question subtypeRecord reference
    Map to a specific field on the tableChecked
    Table fieldTravel from
    Question labelWhere are you departing from?
    MandatoryChecked
  1. Click the Additional details tab
  1. Under Source table, search and select Airport (This is the table you imported from the spreadsheet)
  1. On the bottom right, click Insert Question
  1. In the main screen, follow the steps above once more for Travel to

    NameSelection
    Question typeChoice
    Question subtypeRecord reference
    Map to a specific field on the tableChecked
    Table fieldTravel to
    Question labelWhere are you traveling to?
    MandatoryChecked
  1. Remember to choose Airport for the Source table under the Additional details tab
  1. Now we will capture the estimated airfare. Insert a new question below Where are you departing from?
  1. In the main screen, follow the steps above once more for Estimated Airfare

    NameSelection
    Question typeText
    Question subtypeSingle-line
    Map to a specific field on the tableChecked
    Table fieldEstimated Airfare
    Question labelWhat is your estimated airfare?
    MandatoryChecked
  1. Click the Additional Details tab and type and select Number for the text validation
  1. On the bottom right, click Insert Question
  1. Your form should now look like this
  1. Click Save in the upper right hand corner.
  1. Preview how your form will look like by clicking on the Preview button on the top right
  1. Try filling in the form with any details, but you won't be able to submit the form as it is in preview mode only
  1. Click Now Mobile on the left sidebar
note

Virtual agent is not installed so you will not be able to preview the conversation.

  1. The experience also automatically gets added to the mobile catalog, so your users can request for travel on the go
  1. Close the preview by clicking the cross icon on the top right
  1. On the left sidebar, click Review and submit
  1. Click the Submit button

We will test this form on the Service Portal at the end of this session. Now it's time for us to create an approval workflow for this travel request!