Linking to a User Task

You can create a custom URL to link to a user task. You can use the URL in an email notification so that when a user is assigned the user task, the user can click the URL to open the task.

To create a custom link

  1. In the properties of the user task, click Email users when this task is assigned.
  2. In Body, navigate to the variable picker in the top left and choose one of the Current task options.
    1. Task link: Provides a URL to the user task for desktop browser.
    2. Mobile task link: Provides a URL to the user task for mobile.
  3. Add the URL to an href in the Html section.

Example

You want to send out an email that contains links to User Task A. For mobile devices, you want to send a mobile-friendly link. For desktops, you want to send a link optimized for viewing on a desktop browser. To create an email with the two types of links, add the text you want to link, wrap the text in address tags, and use the Task Link and Mobile Task Link variables in hrefs. This looks like the following:

<a href=”{/dataset/_task_link}”>Click to open the task on your desktop</a>

<a href=”http://{/dataset/_mobile_task_link}”>Click to open the task on your mobile device</a>

Sending a test email to yourself, you can see that the links with the variables are converted to clickable URLs as follows:

Select one of the following links to view your task. Please submit the task after completion.

Click to open the task on your desktop

Click to open the task on your mobile device

Click here to open this task in Forms.

The first two links in the body of this email notification are the customized links you added. The last link is the default task link. This is set using the Show default task link checkbox at the bottom of the Email Notification dialog. Hide this link by clearing this checkbox.

Important: The mobile-friendly task link works only if the primary Forms server URL specified on the Forms configuration page contains a domain. If you're having trouble with the mobile-friendly task link, check that you included a domain in the primary Forms server URL.