You are viewing limited content. For full access, please sign in.

Question

Question

Form submitted with required fields empty

asked on November 20, 2015

Hi,

I have a drop-down for selecting Organization and a lookup rule to populate 'amount per user' in 6 different tables. Sometimes the user might forget to click on auto-fill. So, I've made the 'amount per user' fields required, both via Forms as well as javascript, but the form can submitted with no input in them.

 

$(".FA_Act_fee input").attr('required', 'true');

 

Thanks

req-error.PNG
req-error.PNG (31.09 KB)
0 0

Replies

replied on November 20, 2015

In reference to this post (https://answers.laserfiche.com/questions/87202/Database-Lookup-Returns-Nothing-but-Satisfies-Required-Fields), looks like fields that are set to "readonly" are not validated by forms.

0 0
replied on November 23, 2015

Thanks Chris.

The fields were made readonly and required through javascript.

$(".FA_Act_fee input").attr('required', 'true');

$(".FA_Act_fee input").attr('readonly', 'true');

 

they work perfect when used individually, but when used together, the field is accepting empty values.

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.