Property | Description |
---|---|
Sub Form | This is the name of the existing form that you wish to use as a sub-form |
Summary x | Specifies which field on the sub-form that you wish to see on the main form as an identifier within the sub-form list |
In addition, also has the common standard properties
The best way to illustrate how and when to use a sub-form is with a simple example:
Imagine that we had a paper based form such as the one below:
The table contains repeating data whereby you could capture from 1 to 5 records. You could build this in WorkMobile by duplicating the part name, qty, serial number and comments fields 5 times, however it’s much quicker and neater to implement this as a sub-form.
To build the above solution, we first need to build the sub-form, i.e. the parts used table. This is effectively a form which will be used to capture the 'repeating' element of the main form.
In our example, we’ve called this form Parts Used and we’ve built it as a standard WorkMobile form.
Next, we need to build the ‘parent form’ that will contain the sub-form that we’ve just built.
In this example, we can build a main form as per normal, however when we get to the 'repeating' section we need to use the sub-form tool. Drag a sub-form tool onto your canvas and then:
As you can see, this form uses the sub-form tool. If you look at the properties panel, you can see that the Sub form property has been set to Parts Used. This is the name of the form that we want to embed within this form.
There is no limit to the level of nesting you can implement when using sub-forms. You can, for example:
These Forms can then be used in the WorkMobile2.0 app for both Form and Job uploads.