@Kaspars Thank you! This code works excellently!
Text-based fields work as expected, however I have a problem with arrays (checkboxes, radios, etc). I checked the database entry and this code just adds the text “Array” as the value. I have tried to fix it myself with some loops but with no success.
Can you provide an update that will parse the arrays into plain text?