Subform and Mainform relationship when using creator remote api

Subform and Mainform relationship when using creator remote api


I have a main form and subform with subtotals the subform.  If I want the main form to be updated when saving a record to the subform, where do I attach the script?   I realize 'On user input' when I'm using the web interface, but where do I place the script when I'm adding records through the API?