All Tracks/lab event rsvp/
Đang tải...
Hướng dẫn thử thách
1 / 1

Build an Event RSVP

**Objective:** Fulfill the user stories below and get all the tests to pass to complete the lab. **User Stories:** 1. You should create a form with fields for name, email, number of attendees, dietary preferences, and an option to indicate if you are bringing additional guests. 2. You should have a text input field where you would enter your name (mandatory). 3. You should have an email input field where you would enter your email address (mandatory). The form should validate the format to ensure it is a proper email. 4. You should have a number input field where you would enter the number of attendees in the form (mandatory), and the number should not be less than one. 5. You should have a text input field where you would enter your dietary preferences, and this information should be optional. 6. You should be able to check or uncheck a checkbox to indicate whether you are bringing additional guests. 7. You should have a button which submits the form, and the form should not cause the page to reload upon submission. 8. You should see a confirmation message displayed below the form after submitting, followed by the details provided (name, email, number of attendees, dietary preferences, and optional additional guests). Here is an example message after submitting the form: ```markdown RSVP Submitted! Name: John Doe Email: example@example.com Number of attendees: 2 Dietary preferences: None Bringing additional guests: Yes ```
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.cpp
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵
Test Output
Thử thách này không có bài test tự động. Hãy quan sát kết quả trực tiếp ở khung Preview.