The SubmissionDataArray
object is an array-like collection of SubmissionData
objects, with some additional methods for saving and managing responses.
- all — Returns a real
Array
containing theSubmissionData
objects. - 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
SubmissionDataArray
for the first page of results generated by a server request. - first — Returns the first
SubmissionData
present in the collection. - form — Returns the collection's
Form
. - index_by_permalink — Returns an object with permalink keys and
SubmissionData
values. - indexOf — Returns the index of a submission, given a permalink,
Submission
, orSubmissionData
. - is_first_page — Checks if the
SubmissionDataArray
is the first page of results returned by a request. - is_last_page — Checks if the
SubmissionDataArray
is the last page of results returned by a request. - last_page — Returns another
SubmissionDataArray
for the last page of results generated by a server request. - last — Returns the last
SubmissionData
present in the collection. - length — Returns the number of
SubmissionData
objects in the collection. - next_page — Returns another
SubmissionDataArray
for the next page of results generated by a server request. - previous_page — Returns another
SubmissionDataArray
for 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
SubmissionData
present in the collection. - submissions — Generates full
Submission
objects for theSubmissionData
collection members, and returns them with a promise. This will load the submission modals, and run scripts and workflows. - third — Returns the third
SubmissionData
present in the collection.