Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

224
Views
'formnovalidate' and 'novalidate' present but form validations are still firing

I have a form with 1 input and 2 submit buttons, one is a Continue while the other is a Skip. I've got novalidate="novalidate" on the form and formnovalidate on the skip button. The behavior I expect is when I do not enter a value and click Submit I see the error "Must be 6 digits." but when I do not enter a value and click Skip I should not see the error "Must be 6 digits.".

All of my research says this should be enough to cancel the validation on Skip but I'm wondering if it's because I have a formaction and a formmethod on the Skip? Check it out:

<form action="/submit/form/and/redirect" method="post" novalidate>
  <input data-val="true" data-val-exactlength="Must be 6 digits." data-val-exactlength-validlengths="6" data-val-required="Must be 6 digits" id="Id" inputmode="decimal" maxlength="6" name="Id" type="text" value="">
  <button formaction="SkipAction" formmethod="post" formnovalidate="" type="submit">Skip</button>
  <button formaction="SubmitAction" formmethod="post" type="submit">Submit</button>
</form>

I read that this used to be an issue with the Chrome browser but should be fixed. I tried it in Firefox but kept getting the validation error. The for submits either way I just do not want to see the validation error when I don't enter a value and click Skip.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!