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

135
Views
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
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!