Submit a form

Submit a form without needing a submit button to be pressed

The conventional way for a user to submit a form is for the user to press a submit button. However, some modern interfaces auto save form data automatically which minimizes the chance a user forgets to press submit and loses their data.

The example below identifies the form by its name. Once it finds the form it then submits it to the data source it was connected with.

JavaScript


// Get the form first
Fliplet.FormBuilder.get()
  .then(function (form) {
    // Submit the form
    form.instance.onSubmit();
  });