The SubmissionDataArray object is an array-like collection of SubmissionData objects, with some additional methods for saving and managing responses.
- all — Returns a real
Arraycontaining theSubmissionDataobjects. - any — Returns a boolean checking if the collection is empty.
- contains — Checks whether the collection contains a submission, given a permalink,
Submission, orSubmissionData. - destroy — Destroys all submissions within the collection.
- first_page — Returns another
SubmissionDataArrayfor the first page of results generated by a server request. - first — Returns the first
SubmissionDatapresent in the collection. - form — Returns the collection's
Form. - index_by_permalink — Returns an object with permalink keys and
SubmissionDatavalues. - indexOf — Returns the index of a submission, given a permalink,
Submission, orSubmissionData. - is_first_page — Checks if the
SubmissionDataArrayis the first page of results returned by a request. - is_last_page — Checks if the
SubmissionDataArrayis the last page of results returned by a request. - last_page — Returns another
SubmissionDataArrayfor the last page of results generated by a server request. - last — Returns the last
SubmissionDatapresent in the collection. - length — Returns the number of
SubmissionDataobjects in the collection. - next_page — Returns another
SubmissionDataArrayfor the next page of results generated by a server request. - previous_page — Returns another
SubmissionDataArrayfor the previous page of results generated by a server request. - restore — Restores (undeletes) all submissions within the collection.
- save — Saves all local changes made to any submissions within the collection.
- second — Returns the second
SubmissionDatapresent in the collection. - submissions — Generates full
Submissionobjects for theSubmissionDatacollection members, and returns them with a promise. This will load the submission modals, and run scripts and workflows. - third — Returns the third
SubmissionDatapresent in the collection.