This upcoming work is funded thanks to Wagtail鈥檚 first hatch, our first Kickstarter campaign! :tada:
It will be started after most of the work from #4473, most likely in August 2018.
This issue hosts all discussions about the features & API we want in this new form builder.
This work will be based on a form builder I built for a project as a Torchbox subcontractor. See it in action in one of the videos from the campaign. Here are the additional features provided by this new form builder compared to the existing one:
StreamField instead of an InlinePanel, making it more flexible.ModelAdmin.What needs to be changed before merge in Wagtail:
CharField has no possibility to specify a minimum or maximum length.So there鈥檚 already a big chunk of work already done, but we鈥檙e not there yet.
Obviously, this new form builder will not be backwards compatible. So it will not replace directly the existing form builder, there will be one year or two where both builders will be supported at the same time. My idea is first to make it a third-party app, then integrate it as wagtail.contrib.stream_forms, at the same time deprecate wagtail.contrib.forms, and in Wagtail 3.0, ditch the old form builder and move wagtail.contrib.stream_forms to wagtail.contrib.forms.
This work will implement solutions for at least these issues:
This work got its first working version here: https://github.com/noripyt/wagtail-flexible-forms
It鈥檚 missing its documentation and still needs some cleaning, as well as tests.
Hello @BertrandBordage,
A few questions here:
Thanks a lot!
@johnraz Yes, please consider it as an alpha.
It is currently being tested in two projects with the current state, and after #4942 is merged I will adjust it to work best with the finally merged version of the React StreamField.
The React StreamField itself will be merged before the 1st of August, according to @gasman.
Most helpful comment
@johnraz Yes, please consider it as an alpha.
It is currently being tested in two projects with the current state, and after #4942 is merged I will adjust it to work best with the finally merged version of the React StreamField.
The React StreamField itself will be merged before the 1st of August, according to @gasman.