Instance class
📖 Description
The Instance
class holds all the data of a single active form instance. It manages the progress in the virtual finite state machine that is generated by the Runner
class for the supplied form definition. The instance also contains the actual data that is collected by the form.
You always need to use the start
or restore
method of the Runner
class to construct new form instances.
If you use one of the stock runners, instances are constructed automatically for you.
🗃️ Fields
🏷️ checksum
Retrieves a checksum for the form instance.
Type
string
🏷️ data
Retrieves the collected data for the form.
Type
🏷️ fingerprint
Retrieves the fingerprint of the form.
Type
string
More information in the form fingerprint guide.
🏷️ finishReference
Retrieves the optional reference that is returned by the finish event handler (for example, the server identifier of the form submission).
Type
string
🏷️ hasDataCollected
Retrieves if the form has any data collected.
Type
boolean
🏷️ id
Retrieves the form instance identifier.
Type
string
🏷️ isAtFinish
Retrieves if the form instance is at the finish.
Type
boolean
🏷️ isAtHead
Retrieves if the form instance is at the head, which is the furthest point in the form that has been reached.