Application Form
Application Forms are forms shown in K2 Mobile and are typically used to capture data, start a workflow and for reporting. These forms are not necessarily used to action workflow tasks. You can also access and action forms offline. See the Offline Availability topic for more information on offline forms.
You access Application Forms in the Forms section of K2 Mobile.
Follow the steps below to create an Application Form in K2 Designer:
- Create a form.
- On the Layout tab, expand the Advanced section of the form's properties.
-
Enable the Application Form property to make this form available in K2 Mobile. You can also enable the Offline Availability
property if you want to allow data caching. These properties are not dependent on each other and a form can have one or both options checked.
Application Form – The form is downloaded from the server to the device and shows in the Forms folder of the K2 Mobile app. It allows you to capture data or start a workflow instance from a form on your device.
Offline Availability – Makes the form available for offline use in K2 Mobile. It is a good idea to use the cache the data option for list and picker controls as this allows the use of filtering to populate the controls from cached data. This property allows you to use a non-Application form for actioning a workflow task when your device is offline. For example, if you start a workflow when an item is added to a SharePoint List and you configure a SmartForm to action the first workflow task, it can be actioned offline in K2 Mobile. See the Offline Availability topic for more information about using offline forms. - Finish the form.
-
You can now access the form from the Forms section on the menu bar of K2 Mobile.
You can link to Application Forms from a source external to K2 Mobile on iOS using deep links.
A deep link is a URI that links to a particular location within the K2 Mobile App. You can use deep links to open specific pages in the K2 Mobile application. You can set up the following types of deep links:
- Link to the Task Detail Card.
- Link to the Task Form.
- Link to the Application Form.
You can send deep links to users in notification emails (for workflow steps), in a normal email, by SMS or from a website and other ways a link is typically shared. When you tap a deep link, the detail card or form opens. If the K2 Mobile App is not running, it opens and shows the login screen. However, the deep link context is lost in this case and you are not taken to the detail card or form. You must tap the deep link again (while K2 Mobile is running) to open the detail card or form.
Building a deep link
K2 deep links have a unique prefix of 'K2' - the public facing K2 server address (the server you log into when using the K2 Mobile App), and the target detail card or form. For example: K2://m1.denallix.com/task/[task serial number]
Target Type | Deep link Example |
---|---|
Task | K2://[server]/task/[serial_number] |
Task Form | K2://[server]/task/[serial_number]/form |
Application Form | K2://[server]/form/[system name] |
If you build the deep link as part of a customized email notification within a workflow, you need to manually type in the URI but you can drag the task serial number for a task or application form from the context browser as shown in the following image:
See the K2 Mobile documentation for information on using your form in K2 Mobile, settings you can configure and more.