In JavaScript (used in React), while using inputs, I used the "required" prop in some inputs in a form. However, when multiple fields are left empty, the warning only shows up in the first required input that was left empty.
The code for the same:
<form method="post" name="Form" onsubmit="" action="">
<input length="20" required=""></input>
<input length="20" required=""></input>
<input length="20" required=""></input>
<input type="submit" value="Submit"></input>
</form>
I tried to change the required prop to manually handling the empty inputs but when the forms are really long, it's not practical. Is there a way I can show the same warning for every field that is left empty?
Thanks

If you are using React, you may use useState hook to store input value of your inputs and render warnings for each empty input.
For example:
This code will display a warning for each empty input. You could also use absolute positioning and z-index in css to make these warning look more like what you had whith required attribute.
You may aslo keep required attribute for accessibility though.