Fork me on GitHub

Submission Custom Endpoint

Sometimes you may want to submit the data to your own APIs or naviate to another page after the submission is complete. You can do this by listening to the submission events.

<link rel="stylesheet" href="">
<link rel="stylesheet" href="">
<link rel="stylesheet" href="">
<script src=""></script>
<div id="formio"></formio>
Formio.icons = 'fontawesome';
Formio.createForm(document.getElementById('formio'), '')
  .then(function(form) {
    // Prevent the submission from going to the server.
    form.nosubmit = true;

    // Triggered when they click the submit button.
    form.on('submit', function(submission) {
      alert('Submission sent to custom endpoint. See developer console.');
      return fetch('', {
          body: JSON.stringify(submission),
          headers: {
            'content-type': 'application/json'
          method: 'POST',
          mode: 'cors',
        .then(response => {
          form.emit('submitDone', submission)


powered by

Copyright © LLC 2019. All rights reserved

Renderer v