This sample runs validation checks for values inside tables, when saving the record.
In this particular sample, the radio buttons determine the validation for the number fields.
Make sure to match the Field code of your fields, with the Field code written in the code.
Note that tables themselves also have Field codes.
Refer to the Tutorial page, on how to add scripts to your app.