Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

181
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda