Loading
 Experience Cloud – Feature Degradation on Lightning Web Runtime SitesRead More
The Trailblazer Community is now read-only Read More
Workforce Scheduling for Agentforce Public Sector
Associate Data Capture Forms with Visits

Associate Data Capture Forms with Visits

Associate Data Capture forms with a visit so that they appear in a Data Capture Form List card in a guided experience and in the visit's Forms related list. Add the Forms related list to the Visit page layout, and then create a form that links the visit to your Data Capture flow.

Required Editions

Available in: Lightning Experience
Available in: Enterprise and Unlimited Editions
Available in orgs where Workforce Scheduling and Discovery Framework are enabled.
User Permissions Needed
To add related lists to page layouts: Customize Application
To associate a Data Capture flow with a Visit: Manage Flows

Before you begin, build and activate a Data Capture form. Then make sure that the mobile workers who open forms have access to the Form object. See Assign Data Capture Permissions to Mobile Workers.

A form links a parent record to a Data Capture flow. In Workforce Scheduling, the parent record is often the visit. Each form has a name, a parent record, and an action definition, which is the Data Capture flow that opens when a mobile worker launches the form.

Forms that you associate with a visit appear in two places in the Field Service mobile app:

  • In a Data Capture Form List card in a guided experience, when the card's Source Record is the visit. This is the main way that mobile workers open forms on a visit.
  • In the Forms related list on the visit's Related tab.

Use this procedure when the forms that a visit needs vary from visit to visit, or when you want forms to appear in the Forms related list. If a form is always needed at a step, you can use a Data Capture Form card instead. The Data Capture Form card creates the form when the mobile worker starts it, so you don't create the form ahead of time.

Note
Note To add a Data Capture Form card or a Data Capture Form List card to a guided experience screen, see Access Data Capture Forms During Visits in the Field Service Mobile App.

Add the Forms Related List to the Visit Page Layout

Add the Forms related list to the Visit page layout that your mobile workers use.

  1. From Setup, in the Quick Find box, enter Object Manager, and then select Object Manager.
  2. Select Visit, and then select Page Layouts.
  3. To find the layout that your mobile workers use, click Page Layout Assignment, and check which layout is assigned to their profiles and the visit record type.
  4. Open that page layout.
  5. Click Related Lists, and then drag Forms to the layout.
  6. Save your changes.
    Note
    Note By default, the fields on the Form object are visible and editable for the Standard User, System Administrator, Contract Manager, Solution Manager, and Marketing User standard profiles. If your users have other profiles, such as custom Workforce Scheduling profiles, set field-level security for the Name, Parent Record, and Action Definition fields. See Field Permissions.

Associate a Form to a Visit

  1. From the App Launcher, find and select Visits.
  2. Open the visit that you want to add a form to.
  3. On the Related tab, in the Forms related list, click New.
  4. For Name, enter a name for the form.

    Mobile workers see this name in the Data Capture Form List card and in the Forms related list, so use a name that describes the inspection or checklist, such as Fire Safety Inspection.

  5. For Parent Record, make sure that the visit is selected.

    When you create the form from the visit's Forms related list, this field is filled in for you.

  6. For Action Definition, select the Data Capture flow.

    Select a flow that was created with the Data Capture Flow process type and has an active version. If the flow doesn't appear, open it in Flow Builder and activate it.

  7. (Optional) Mark the form as required, and set the order that it appears in.

    In a Data Capture Form List card, when the card's Required Task property is selected, mobile workers can't move forward or finish the step until required forms are complete. Forms are listed by their execution order. To change these settings, use the form's Required and Execution Order fields.

  8. Save your changes.

    The form appears in the Forms related list on the visit, and in any Data Capture Form List card whose Source Record is the visit.

    Note
    Note You can automate this procedure by creating a record-triggered flow that associates a form with a visit when the visit is created. See Triggers for Autolaunched Flows. Test that forms created by the flow appear in the mobile app after the visit is scheduled and assigned.

Test the Form in the Field Service Mobile App

To test the form, make sure that the mobile app is version 264 or later. If you don't use a guided experience, test from the visit record instead. After you tap the visit, on the Related tab, in the Forms related list, tap the form.

  1. While the device is online, log in as a mobile worker who's assigned to the visit's service appointment. If the mobile worker is already logged in, log out of the app, and then log in again.
  2. On the Schedule tab, tap the visit to start the guided experience for the visit.
  3. Go to the step that contains the Data Capture Form List card.
  4. Check that the form appears on the card with the name that you entered and a status of Not started.
  5. Tap the form's row to open it.
 
Loading
Salesforce Help | Article