Skip to content

Builder API to get a data object that can be used directly by Vueform? #30

Closed Answered by adamberecz
djkunkel asked this question in Questions
Discussion options

You must be logged in to vote

The Builder provides the following object upon saving:

let builderObject = {
  "schema": {
    // elements
  },
  "theme": {
    // theme variables
  },
  "form": {
    // form options (including steps, if any)
  },
  "export": {
    // builder export settings
  },
  "builder": {
    // builder settings
  }
}

You can reach the form's elements (schema) and form options (form) via it and pass them to a <Vueform> component:

<Vueform v-bind="builderObject.form" :schema="builderObject.schema">

I put together a short chapter in our Docs explaining Rendering:
https://builder.vueform.com/docs/rendering

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by djkunkel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants