Deluge script to new entry to a sub form
I want my subform to auto-populate with data when a option from a dropdown in the mainform has been selected. For instance, if "Jack" is selected from the dropdown and he has 3 kids, I want the subform to replace all the existing entries in the subform with 3 entries for his children. If "Mary" is selected from the dropdown and she has 5 kids, I want the subform to remove the existing entries in the subform and add 5 that are populated with info about her kids.
I found many similar posts, but I couldn't find one that addressed this issue. Thanks.