• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Script needed

New Here ,
Apr 26, 2021 Apr 26, 2021

Copy link to clipboard

Copied

Need help to get a JavaScript on my form. 

 

I am currently working on a form for my company and need to set a minmum value for one of my fields. I don't know anything about JavaScript but I just need a simply script that can just set the field to greater than 5 and anything less than 5 will not show up. Please help!

TOPICS
PDF forms

Views

203

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 26, 2021 Apr 26, 2021

Copy link to clipboard

Copied

LATEST

As validation script of field use this:

if(event.value < 5) event.value = "";

This is just basic code to empty field if value is less then 5.

You can also consider to use alert if user input number less then 5 so He/She knows whats going on.

If you try to paste code into validation and have trouble, try input code manually.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines