collective / collective.volto.formsupport

Enable support for customizable forms in Volto
GNU General Public License v2.0
2 stars 8 forks source link

XML Sending and custom field mapping #22

Closed JeffersonBledsoe closed 1 year ago

JeffersonBledsoe commented 1 year ago

Requires collective/volto-form-block#52

This PR adds supports for attaching an XML file containing the data submitted in the form to the email. This feature is available in collective.easyform and may be useful to those transitioning to Volto. To further help transition collective.easyform users who may be reliant on specific field IDs when using collective.easyform, the ability to customise the label for sending/ downloading XML and CSV was also added.

The below video demonstrates the custom value mapping when downloading the CSV file. The XML after the video was the contents of the file attached to the email sent when submitting the form.

https://user-images.githubusercontent.com/30210785/203632407-ab1e51d1-3374-4613-b010-d2d823402630.mov

<?xml version='1.0' encoding='utf-8'?><form><field name="Custom field label">My value</field></form>
JeffersonBledsoe commented 1 year ago

@cekk I've updated the changelog and docs. Docs aren't my strong point so would you mind having a look over them before merging? 🙂

cekk commented 1 year ago

looks good..can you provide some tests for this new feature (sorry, i forgot to tell you)

JeffersonBledsoe commented 1 year ago

@cekk Added test!

cekk commented 1 year ago

Cool, thanks!