New Or Unsaved

Forms Developer Guides Scripting Page Not Found Page Not Found Submissions

NEW_OR_UNSAVED()

Form.new(permalink).submissions.new_or_unsaved().then(function(submission) {
  submission.show();
});

Returns a Promise with an unsaved submission if one exists, or loads a new submission from the server. This should be used for "New Response" buttons which should open the submission in progress on subsequent clicks until it has been saved.