Thanks for your response May
I've tried your script but I'm not seeing any change in behavior in my application...
If you have time to look at this more, here's some clarification:
I'm using two datapages --
First datapage collects training class info. (example data: Ladder Safety, 08/19/2017)
Second datapage allows user to select names from a list of employees and (by clicking "add" one by one) add them (with class info) into a training attendance records table. (example data: John Smith, Ladder Safety, 08/19/2017; Mark Jones, Ladder Safety, 08/19/2017; etc.)