Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Exercise 2: Creating a 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.

  1. Click the App Home tab to return to the main view

  2. Click Add under Experience

    relative

  3. On the following screen, click Record Producer

    relative

  4. Click Get started

  5. On the ADD EXPERIENCE screen, enter Raise a travel request under Name, and Capture employee travel requests for description

    relative

  6. Click Continue

  7. Click Edit record producer

  8. 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.”

  9. (Optional) Add an image if you wish (You can use anything you find online)

    relative

  10. On the left sidebar, click Destination

  11. We will define where this form will route requests to. Search and select Travel request. This is the table we first created.

    relative

  12. 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

  13. On the main area, click Browse

    relative

  14. On the next screen, look for Service Catalog under the Available section and move it to the right (Your list might appear different from the screenshot below)

  15. Ensure that Service Catalog now appears in the Selected section

  16. On the bottom right, click Save selections

  17. Click Browse under Categories

  18. This time, do the same as before, and select Can We Help You? from the Available list

    relative

  19. On the left sidebar, select Questions

  20. Click on the dropdown arrow next to Insert new question, and click Single column container

    relative

  21. In the pop-up box, enter Information under Title

  22. Click Submit

  23. Repeat the top 3 steps again, but this time select Two column container and enter Dates and locations

    relative

  24. Your screen should look like this

    relative

  25. Expand the Information section, click the Insert icon, and select New question

    relative

  26. In the next form, fill it out as below

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

    relative

  27. Click Choices

  28. Check Include none choice

  29. Under Available Choices, add the 3 reasons you added during table creation: Internal meeting, Customer meeting, Training

    The Value column is automatically populated, leave it as it is.

  30. On the bottom right, click Insert Question

    relative

  31. Expand the Dates and locations section

  32. On the left column, add a New question

    relative

  33. Fill out the form as follows

    NameSelection
    Question typeDate / Time
    Question subtypeDate
    Map to a specific field on the tableChecked
    Tabel fieldDeparture date
    Question labelWhen are you leaving?
  34. Click Insert Question at the bottom right

  35. Repeat the steps above again for Return date

    NameSelection
    Question typeDate / Time
    Question subtypeDate
    Map to a specific field on the tableChecked
    Tabel fieldReturn date
    Question labelWhen do you return?
  36. Now we will capture the locations by looking at the Airport table we created

  37. Under the same Dates and locations section, add a new question

    NameSelection
    Question typeChoice
    Question subtypeRecord reference
    Map to a specific field on the tableChecked
    Tabel fieldTravel from
    Question labelWhere are you departing from?
    MandatoryChecked
  38. Click the Additional details tab

  39. Under Source table, search and select Airport (This is the table you imported from the spreadsheet)

    relative

  40. On the bottom right, click Insert Question

  41. 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
    Tabel fieldTravel to
    Question labelWhere are you traveling to?
    MandatoryChecked
  42. Remember to choose Airport for the Source table under the Additional details tab

  43. Your form should now look like this

    relative

  44. Preview how your form will look like by clicking on the Preview button on the top right

    relative

  45. 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

  46. Click Now Mobile on the left sidebar

    relative

  47. The experience also automatically gets added to the mobile catalog, so your users can request for travel on the go

  48. Close the preview by clicking the cross icon on the top right

  49. On the left sidebar, click Review and submit

  50. Click the Submit button

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


Previous exercise Next exercise