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

136
Visualizações
Adobe javascript - field validation on click or tab

I have drop down fields with the values 0 - 5, with 0 being the default. I have tried a few validation scripts (below) that work, but only if the value is changed back to '0' so I was wondering if anyone could help me out with a script to display a popup when someone either clicks the drop down and forgets to select a value, or if they tab past the field?

Scripts I've used:

1.

event.rc = true;
if (event.value => "0")
{
    app.alert("You must enter a value other than zero!");
    event.rc = false;
}
if (event.value=="0") app.alert("You must select a value other than zero.");

If there is a script or command to check whether the default value has changed or something along those lines, that wold be great. I appreciate any help.

about 4 years ago · Juan Pablo Isaza
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