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

47

Likes

translate

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
Adobe Community Professional ,
Apr 26, 2021 Apr 26, 2021

Copy link to clipboard

Copied

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.

Likes

translate

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