@jonatandor35 Thank you so much for your input! I highly appreciate it.
I never thought it would get this complicated. So I will try to stick with the original code for now. I added $w ( ‘#dataset1’ ). save () to the original code but I get this message in the console logs:
save operation failed: DatasetError: Operation (save) not allowed during save
It does add a record with the stuff I inputted in the form but the _id has not been copied to the clientId field.