Relating Submissions to Elements

The following example will relate the newly created submission to another element (in this case a Craft Entry) via the Freeform Submission relation element field type.