hngprojects / hng_boilerplate_nextjs

https://deployment.nextjs.boilerplate.hng.tech
206 stars 264 forks source link

[fix] [FE ANCHOR] Correct Error When Submitting FAQ Form in the frontend by implementin new end point #1205

Open Alphasome opened 2 months ago

Alphasome commented 2 months ago

Description

Description: The current FAQ form is not correctly submitting user inquiries due to an endpoint issue. The frontend needs to be updated to connect to the correct backend API endpoint to process FAQ form submissions effectively

User Story: As a user, I want to submit my questions through the FAQ form and receive confirmation that my inquiry has been sent successfully without encountering errors.

Acceptance Criteria

Requirement

  1. Integrate the FAQ form with the correct backend API endpoint for processing submissions.
  2. Ensure client-side validation is in place to check that all required fields are filled out before submission
  3. Display a success message upon successful submission to confirm that the inquiry was received.

Acceptance criteria

  1. The FAQ form correctly submits inquiries to the designated backend API endpoint.
  2. A success message is displayed after the form is submitted successfully.

Expected Outcome Users can successfully submit their questions through the FAQ form without encountering errors.

Links

| [[FIGMA LINK](https://www.figma.com/design/VEItfX6St5NSAqqNHImcxD/HNG-Boilerplate-Designs?node-id=10-23157&t=1TkEhfLMB1fQwC0P-0)]

(LIVE - LINK) - https://anchor-python.teams.hng.tech/faqs

Images

image
Muneerat commented 2 months ago

On it