How can i open preview in new tab #93
-
I want to open preview in new tab as well as want to save the code in db for forms that i have created. Also i need to give unique id to every form that i have created. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can access the export object of the builder from Saving can be achieved by subscribing to the |
Beta Was this translation helpful? Give feedback.
You can access the export object of the builder from
localStorage
undervueform-builder
key. It containsschema
andform
properties that you can use in a new window to preview a form. You need to add an external button somewhere outside the builder to open the new window.Saving can be achieved by subscribing to the
@save
event of<VueformBuilder>
component as described here. You can add a unique key to each form before saving. Later, you can load back the forms to the builder or used the saved JSON to render forms.