We are using CMS builder to record covid vaccination information for pre-hire employees and I am using the uploadForm3_add code to upload vaccination card images. Ultimately I want to send an email to the HR department that includes the vaccination information as well as the uploads but I am running into an issue. When you click the upload button in the iframe it does upload to the database but then when you submit the form it creates a second record rather than writing it to the same record even though they have same tempid. I am guessing the issue is once it uploads the images to the CMS the temp id ceases to exist and but I don't know how to counteract this.
Any help is appreciated.