cul-2016 / site

The Quodl website - where the latest information on Quodl, the science behind it and sign up links can be found.
http://quodl-site.herokuapp.com/
MIT License
5 stars 0 forks source link

Contact form #12

Closed iteles closed 6 years ago

iteles commented 6 years ago

As a site owner I would like to have a page with a contact form which allows visitors to select from a drop-down list of subjects So that both our visitors have the ability to contact us and also so that we know how best to direct their enquiry.

Acceptance

Cleop commented 6 years ago

@iteles - when you say:

Submitting the contact form sends an email to a particular support email

Do you mean one particular support email (for all of the submitted forms) or do you mean a particular email according to the type of form submitted ie. sales requests go to one email address and technical problems go to another one?

iteles commented 6 years ago

Good question @Cleop, I'll run these by our PO tomorrow

Cleop commented 6 years ago

The Apostrophe tutorial suggests you use the apostrophe-pieces-submit-widgets package. So I started off with @this.

Had to also add the events and pieces modules as this is what the pieces-submit-widgets module said: image

Using the examples I successfully got a form to show: image

But I have not yet done anything to do with submitting the form as there are no instructions on this. So at the moment when you try to submit the form you get this error: image

I tried ensuring we had a 'title' by adding this: image And now I see this and no errors, so now I need to work out where the submissions will go. I think I need to add a slug somewhere to find this out: image

I checked the entire MongoDB collection and could not find any saved entries, I also tried checking the admin dashboard and there's nothing saved there.

Alternatives

I've come across this module which up until now has not been advertised anywhere so maybe it's not very good or maybe it's not been made by apostrophe themselves.... https://www.npmjs.com/package/apostrophe-forms

This question/answer: https://github.com/apostrophecms/apostrophe/issues/684 https://stackoverflow.com/questions/41708130/creating-forms-in-aposstrophe-cms Questions

I tried to search for the 'Submit Your Event' text to find this to style and couldn't find it anywhere in the project, not even in my ignored files. Same with 'Submit Now' for the submit button, wasn't anywhere to be found.

Cleop commented 6 years ago

@iteles - can the dropdown list checkbox be taken out of the list of requirements as it wasn't in the designs?

iteles commented 6 years ago

Closing this issue as email alerts are now captured in #42