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

169
Views
Triggering a function on pressing enter in a char field odoo 14

Is it possible to trigger a function when the Enter key is pressed in the character field.?

The onchange function is not working as inside the function it returns another form. so is there any Javascript code for that?

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

You use addEventListener 'keypress' then check if the keycode is the Enter key

document.getElementById('inputField').addEventListener('keypress', function(event) {
        if (event.keyCode == 13) {
            //Run a function here
        }
    });
about 4 years ago · Santiago Gelvez Report
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!