Hi,
I have a tricky problem in my latest website that uses a contact from and a multi-tab page.
The website is single-page, and has three tabs, one of which is "Contact Us". This has a form that can be completed and send via email using the "Submit" button. However, once this is clicked, the page refreshes and returns the user to the first tab on the page, not the Contact Us page which is the third tab. Also, if there are any errors in the data supplied in the form, the user has to click back into the tab to see the errors.
Ideally, I would like the flow to work like this:
1. User enters data in the contact form
2. User clicks "Submit"
3a. (If data is OK) - Alert is displayed saying the data has been sent, and (optional) the fields are reset
3b. (If the data is not OK) - Alert is displayed saying that there are errors with the data and the erroneous fields are highlighted (I have got the highlighting to work).
Can this be done with Couch?
The site is bootstrap based and uses their multi-tab option.
Many thanks for your help.
Mark
I have a tricky problem in my latest website that uses a contact from and a multi-tab page.
The website is single-page, and has three tabs, one of which is "Contact Us". This has a form that can be completed and send via email using the "Submit" button. However, once this is clicked, the page refreshes and returns the user to the first tab on the page, not the Contact Us page which is the third tab. Also, if there are any errors in the data supplied in the form, the user has to click back into the tab to see the errors.
Ideally, I would like the flow to work like this:
1. User enters data in the contact form
2. User clicks "Submit"
3a. (If data is OK) - Alert is displayed saying the data has been sent, and (optional) the fields are reset
3b. (If the data is not OK) - Alert is displayed saying that there are errors with the data and the erroneous fields are highlighted (I have got the highlighting to work).
Can this be done with Couch?
The site is bootstrap based and uses their multi-tab option.
Many thanks for your help.
Mark