script not working for portal entry
I have a script that is supposed to take the info. from several fields and put them into other fields on another layout when running the script. There may be multiple tests for each field that are all related to one specimen number. The script is working perfectly when it needs to open a new record and save the data, then display back into the portal on the original layout. However, if there is already one record in the system for a specific specimen number, it will not relate them properly and record the data in the fields into the related table. I will post the script below this to see if anyone has any ideas on why it may not be working correctly.