Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

133
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda