Kiho / react-form-builder

A complete react form builder that interfaces with a json endpoint to load and save generated forms. The toolbox contains 16 items for gathering data. Everything from star ratings to signature boxes!
MIT License
466 stars 345 forks source link

Missing data props in FormBuilderProps and error in FormBuilderPostData #317

Open AnatoliiCubex opened 2 weeks ago

AnatoliiCubex commented 2 weeks ago
  1. As shown in example (https://www.npmjs.com/package/react-form-builder2), it is possible to provide pre-built data to form builder, but the data prop is missing in FormBuilderProps
  2. For the FormBuilderPostData, the problem is data that element and childItems fields are incorrect, I just generated a form data from builder, saved it in my const, added FormBuilderPostData type and errors like these image image image image
Kiho commented 2 weeks ago

Can you try 'Header Text' instead of 'Header'?

AnatoliiCubex commented 2 weeks ago

Can you try 'Header Text' instead of 'Header'?

Yes, but then it throws duplicates of this error message image image image