Form Wizard Error Checking

I am working on creating a form wizard for a long form.

There are 5 pages.

I want to check the required fields when the user clicks next.

I’m currently using conditional display for displaying only the stage of the wizard that the user is on.

However, at the last step when the user clicks submit, the form then validates and caused UI issues (cant tell what the error is, and what field might not have been filled out).

Is there a way to validate the fields at each step, and not submit the form until the last step?

Or, what would the best work around be?

Hey,
what you can do is to have separate form for each page, and validate each of them separatly (so that user cannot go in the next step if all fields are not here).

On the submit of each form, you can just store the different values inside a variable, and use it for the last step to really submit the form to your backend.

That makes sense. Thank you.