collective / volto-form-block

Volto addon for a customizable form block
MIT License
9 stars 7 forks source link

Forms should be submittable without JS #32

Open JeffersonBledsoe opened 1 year ago

JeffersonBledsoe commented 1 year ago

The current form relies on the onSubmit handler to submit to the backend. Adding an action with a URL of path + /@submit-form should allow these forms to work without JS (I haven't tested to see if the backend package will handle these form submissions yet, so some adjustments may need to be made to collective.volto.formsupport.

What we need

Proposed solution

alisedaghatbaf commented 1 year ago

I get the following error when trying to submit a form. Let me know what I am missing here. image

JeffersonBledsoe commented 1 year ago

Hi @alisedaghatbaf. Have you got the collective.volto.formsupport addon installed in your site? volto-form-block (this package) provides the UI for form editing while collective.volto.formsupport provides the backend API endpoints for submitting forms, storing data, etc.

alisedaghatbaf commented 1 year ago

Hi @alisedaghatbaf. Have you got the collective.volto.formsupport addon installed in your site? volto-form-block (this package) provides the UI for form editing while collective.volto.formsupport provides the backend API endpoints for submitting forms, storing data, etc.

yes, have done that.

tiberiuichim commented 1 year ago

@alisedaghatbaf In running Volto or Plone, go to the Control panel > Addons and enable the collective.volto.formsupport