kitconcept / volto-form-builder

An interactive form builder for Volto, that allows editors to assemble forms via drag and drop.
4 stars 5 forks source link

Send form data to the backend #49

Open tisto opened 3 years ago

tisto commented 3 years ago

It seems we currently do not send any data to the backend.

The volto-form-builder backend provides a @form endpoint that the frontend can send its form data to:

https://github.com/kitconcept/volto-form-builder/blob/master/api/src/kitconcept.voltoformbuilder/README.rst#documentation

tisto commented 3 years ago

@iFlameing can you please look into this today?

iFlameing commented 3 years ago

@tisto when I am submitting data to the form I am getting the success response but the data is not stored successfully I am only getting the same data which Is provided initially in get response. i.e

[{'email': 'john@example.com', 'subject': 'hello world', 'comment': 'lorem ipsum'}, {'email': 'jane@example.com', 'subject': 'hi from jane', 'comment': 'hi there'}]

What should be the idle behavior? If a certain document contains the form and doesn't have any submitted response it should only return empty data. the post request should be stored according to the path.