Deluge scripts run OK when subform is standalone, but not when embedded in a parent form

Deluge scripts run OK when subform is standalone, but not when embedded in a parent form

Hi all,

I'm modifying the Order Management application.

When a New Product is added, I have a SubForm to add Serial #s for unique SKUs.

For the first row, the user can use the Barcode read function to get the first Serial #.

After that, when each row is added, for the Item_ID_UPC_Barcode field, I have added a script (that I found here) that will increment the original Serial # by 1 and place that value in the new row's Item_ID_UPC_Barcode field, thus saving the user the work of having to scan or type each sequential barcode.

When I click "Access this Application" from the Subform and the Subform is loaded stand-alone, outside of the New Product form, the scripts seem to run.

When I go to the New Product form itself, the Subform appears and I can add new rows, but none of the scripts seem to fire.

Also, in trying to access the Subform row index, I've noticed most examples here say to just use "row.index", but any time I try to use the row variable in one of these scripts in the Subform I get an ERROR: Variable "row" is not defined.

Screenshots attached... any chance a Zoho support admin could login and take a look?