Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Form Validation | Advanced Features
Next.js 14
course content

Conteúdo do Curso

Next.js 14

Next.js 14

1. Introduction
2. Basic Concepts
3. Pages and Layouts
4. Deployment and Database
5. Working with Data
6. Advanced Features
7. Authentication

book
Challenge: Form Validation

Attempt to navigate to the specified route (http://localhost:3000/dashboard/invoices/create) and submit the form with completely empty fields. What will be the result?

An error is encountered when attempting to submit an empty form. Which attribute should be included in the input and select elements to prevent sending empty fields in the form?

Answer to the Question

The required attribute specifies that an input field must be filled out before submitting the form.

Solution Code

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 6. Capítulo 8
We're sorry to hear that something went wrong. What happened?
some-alt