AlexNexton / BI-Team-5

Cafe Java is a local coffee shop which is unable to operate smoothly due to the Global Pandemic (Covid). The cofee shop was only able to accept walk in customers, which under current safety regulations are seen as not safe and more importantly it has seen an increase in revenu loses. As a team, we have build a website to enable Cafe Java customers to make their orders online in advance of their visit to the shop with the aim to save the business from collapsing.
https://alexnexton.github.io/BI-Team-5/
0 stars 3 forks source link

Form Validation #13

Closed neringabickmore closed 4 years ago

neringabickmore commented 4 years ago

Describe the bug The form is set in a way so that all the fields are "required" to fill in before it can be submitted.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'BOOK'
  2. Click on 'Book a table.'
  3. Type your name, email and phone number, tick the consent form and click "tick button"
  4. The form is sent without Validating the "No. of guests", "Date" or "Time".

Expected behavior The form is expected to bring up an error message as "No. of guests", "Date", "Time" is not chosen: image

Screenshots If applicable, add screenshots to help explain your problem.

image

Desktop:

Additional context The order is not complete if the user doesn't select all the fields hence the requirement to fix this bug.

neringabickmore commented 4 years ago

I have now turned to the team for support and the following code has fixed the issue:

image