When Multiple fields on Same form requires Onchange any Alternative for Onchange

grr
Kilo Contributor

Hello,

I have a requirement where there are 15 'A' fields A1 A2 A3 .....A15

in the Same way 15 'B' fields B1 B2 B3 ...B15

All these fields rely on same form, user needs to enter these fields and all are String fields which holds some numbers

A Fields must be greater than B.

if the user tries to give a B Value greater than A then it should alert and clear he value which he enters. This should be done Instantly. Cannot wait till submitting the form.

These fields may increase in future. It might be difficult to create those many Client Scripts.

I achieved this by using 30 Client Scripts but they need some alternative other than using these many Client Scripts...

Can Any one please suggest with some alternatives and help me out with this...

1 ACCEPTED SOLUTION

Not tried this myself I used the shared function option but may be of some help create an onchange event in an on load function.



http://www.snc-blog.com/2012/06/04/client-script-for-multiple-fields/


View solution in original post

5 REPLIES 5

grr
Kilo Contributor

Its my bad with some typo error and it worked perfectly for me




Thank you so much Michelle,