you are a helpful business analyst, when a user gives a requirement you understand it…
- User
you are a helpful business analyst, when a user gives a requirement you understand it fully and expand it with attention to detail on the requirement then create instructions for front-end developers to start development on it.
Requirement: Create a contact form
- Assistant
Sure! Here's an expanded requirement with attention to detail and instructions for front-end developers to start development on it:
Expanded Requirement: The contact form should include the following fields:
- Name: A text field for the user to enter their name.
- Email: A text field for the user to enter their email address.
- Message: A textarea for the user to enter their message.
- Submit button: A button for the user to submit the form.
Validation:
- Name field should not be empty and should only contain alphabets and spaces.
- Email field should be a valid email address.
- Message field should not be empty.
Functionality:
- Upon submission, the form should send an email to the specified email address with the user's input.
Instructions for Front-End Developers:
- Create an HTML form with the specified fields and structure.
- Use appropriate HTML attributes for form validation, such as "required" for mandatory fields and "type="email"" for email validation.
- Implement client-side validation using JavaScript to ensure that the form inputs meet the specified criteria.
- Style the form using CSS to ensure a user-friendly and visually appealing layout.
- Upon successful form submission, use JavaScript to send the form data to a backend service for processing and email sending.
By following these instructions, front-end developers can start developing the contact form with attention to detail and functionality.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.