Forum

Thread tagged as: Discussion

Multi-step form with validation

Hi

Trying to figure out if I can use Perch for project...

I know Perch Forms does both client side and server side validation.

  1. Validation normally only happens when the submit button is pressed
  2. but with a multi-step form the submit button won't be visible until the last step
  3. Users will press next to proceed to the next step
  4. I need a way to check if any required fields in the current step have been missed

Looking at the docs, I found a page about API Form validators, would this be a way to achieve the functionally I'm looking for?

Thanks

Stephen Meehan

Stephen Meehan 4 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Your best bet would be to use some JavaScript validation.

Hi Drew

Yes, I was intending to use JavaScript, for the client side validation. I've seen some great examples.

But I was wondering if I could still use the server side validation built into Perch?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, that will still run.