formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.83k stars 1.04k forks source link

Passing a form-url to form builder is not possible anymore (only passing a form json is possible) #5660

Closed manuelroth closed 1 week ago

manuelroth commented 1 week ago

Describe the bug Formio.builder has an optional form parameter which allows to set the default form that shows up in the builder interface (see documentation). It can either be an url to the form or a form JSON. v4.19.4 introduced a breaking change. Now it is not possible anymore to pass a form url. The change was introduced in the following commit: https://github.com/formio/formio.js/commit/05cbc9415cf82cc0ae36c2cfacd7c8ca1b4167ec.

Version/Branch v4.19.4

To Reproduce Steps to reproduce the behavior:

  1. Create a new Form Builder: Formio.builder(domElement, formUrl);
  2. See error in console

Expected behavior It should be possible to pass a form-url to the form builder. At the moment only passing a form json is working.

Screenshots The following error message is printed in the console:

Bildschirmfoto 2024-06-24 um 17 51 21
manuelroth commented 1 week ago

I just found out that this issue was already fixed by v4.20.0 in https://github.com/formio/formio.js/commit/bace016c5daad032f90bd68626656db72d5cabbc. I guess I will just update to this version