I have created a form with text inputs, dropdowns and checkboxes. Some of them are required and some aren't. Since there are too many input fields, I want to select all input in one go, check if all of the inputs are valid. Is there any functions that I can use? I tried grouping the elements together and used forEachItem, and apparently it doesn't work.