Object

Forms Developer Guides Scripting Data Object

The SubmissionData object is a much simpler data-only model for submissions. The heavier Submission object includes a modal, custom script calls, workflows, and a number of child objects for helpers. The SubmissionData object is returned by queries and API request wrappers. It can be turned into a Submission object with the submission method, if necessary.

Queries for more than one record return SubmissionDataArray objects, an array-like collection of SubmissionData objects.

  • destroy — Destroys a submission from the server.
  • field — Returns or sets an individual field's value.
  • fields — Returns or sets values for all fields.
  • form — Returns the submission's Form.
  • header — Returns an individual header's value.
  • headers — Returns all header values.
  • permalink — Returns an the submission's permalink ID if it has been saved.
  • persisted — Returns a boolean checking if the submission has been saved.
  • restore — Restores (undeletes) a submission from the server.
  • save — Saves the submission to the server, with any field value changes made.
  • submission — Turns the SubmissionData object into a Submission, loading its modal and scripts.