Hello,
I think the original author wanted us to use the default mechanism of Gutenberg blocks import and export.
So I would try adding to reusable blocks, export as Json and then import. But I have not tried it yet.
I’m currently reworking all the backend to be more straightforward and WP way (all you see in WP admin), and then I’m going to start looking at blocks.
Thanks for this good question, I will definitely test if it works and how it works and try to add a doc for it if I get the original domain by any chance..
I hope it’s solved, and if not, please create an issue on GitHub.
Hello Nikolay!
Thanks a lot for getting back to me.
I apologize for my delay.
Thank you for the tips.
Actually I tried to export using the default mechanism of gutenberg in json blocks
Unfortunately when creating a form within the plugin this option disappears, and creating a form inside a block outside the plugin corrupts some fields.
@renanbernei
Just tested one of the ways. It’s not ideal probably, but works (tested with the standard form right now).
Here are the steps:
- Open the list view of blocks
- Select all fields of your form
- Click on “…”, then “Copy blocks”
- Create a new form
- Delete all fields there, click on the “+” button below a form (on the latest version)
- Paste the blocks (ctrl+v).
I agree it would be better to just be able to click export and import, but this approach is not that bad too, at least it’s natural for WP. The disadvantage of this method for saved forms is that you have to replicate the form blocks settings again at the moment.
I described the mechanism for saved forms (if I understood your case correctly), but for one-off forms it will be the same I suppose.