formio / vue

Javascript Powered forms and JSON form builder for Vue.js
MIT License
119 stars 65 forks source link

How I get the the JSON Schema from the form Builder to save at the database, I'm using Vue.js #41

Closed uires closed 4 years ago

uires commented 4 years ago

How I get the the JSON Schema from the form Builder to save at the database ? I'm using Vue.js

 <template>
  <div id="app">
    <link
      rel="stylesheet"
      href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
    />
    <link
      rel="stylesheet"
      href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
    />
    <link rel="stylesheet" href="https://unpkg.com/formiojs@latest/dist/formio.full.min.css" />
    <form-builder v-bind:form="{ display: 'form' }"  ></form-builder>
    <button type="button" class="btn btn-primary">Salvar</button>
  </div>
</template>

<script>
import { FormBuilder } from "vue-formio";
export default {
  name: "app",
  components: { FormBuilder },
  data() {
    return {};
  }
};
</script>
uires commented 4 years ago

PS: Is not a bug, my bad.

uires commented 4 years ago

image

I solved, add this at the file FormBuilder.js, and a put a button in the view where the FormBuilder is rendered

LucasPanetto commented 3 years ago

You can share this code?