This topic is locked

Javascript row validation for list page

6/23/2017 6:01:38 PM
PHPRunner General questions
H
headingwest author

Hi,
I want to do validation as a user types values into a row on a list page by using javascript. Some fields in the row depend on other fields in the row. But I can't see how to do the equivalent of "OnLoad" for each row.
For example I want to add the following:

ctrl_rowid_fieldid.on('keyup', funcrowid);

ctrl_rowid_fieldid.on('keyup', funcrowid);

ctrl_rowid_fieldid.on('change', funcrowid);
For example if you had 2 input boxes on a row that took numbers "small" and "Large" where small = 2 x large how would you calculate the field values as the user typed into small or large? Easy to do on an edit/add page.
Any ideas appreciated.