Querying

Scripting Custom Scripts

Submissions can be queried from the server by permalink. Forms can be queried from the server by name or permalink. The queries return jQuery Deferred objects, which resolve with an object.

Forms

Forms can be queried using the top-level Form object.

find_by_permalink(permalink)

Returns a form object. Accepts a form's permalink as its parameter.

Form.find_by_permalink("ABCDEFGHIJ").done(function(form) {
  form.submissions.all()
})

find_by_name(permalink)

Returns a form object. Accepts a form's user-friendly name as its parameter.

Form.find_by_name("My Form Name").done(function(form) {
  form.submissions.all()
})

Submissions

Submissions can be queried using the top-level Submission object.

find_by_permalink(permalink)

This method is available to server-side scripts.

Returns a submission object. Accepts a submission's permalink as its parameter.

Submission.find_by_permalink("ABCDEFGHIJ").done(function(new_submission) {
  new_submission.modal.show()
})