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

348
Views
Object: null prototype submit: '' - Node Express when parsing form value with req.body

Have a very simple input on a form to test a POST route :

<form method="POST" action="/user/onboarding" id="onboarding_form">
    <div class="form-check">
    <input class="form-check-input" id="industry" type="checkbox" value="FinTech"/>
    <label class="form-check-label" for="industry"> FinTech </label>
    </div>
    <button type="submit" name="submit"> Complete onboarding </button>
</form>

But when I try parse the result and access using req.body.industry I'm seeing [Object: null prototype] { submit: '' } on my console.log

I've followed the steps here and have :

app.use(express.json());
app.use(express.urlencoded({ extended: false }));

above my routes

What am I doing wrong?

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!