Thanks this has worked!
I created some $newvalues above the FrmEntry::create command, and then added in the mapped fields after!
Forgot to say it errors our at: $draft_field_value = $entry->metas[ $draft_field_id ];
Normally you'd want to identify what the error is as well, however, it's pretty obvious from the code that $entry is null, because you didn't set it. You need to execute $entry = FrmEntry::getOne($entry_id, true); before the line with the error.
Thanks! This is great.
Please login or Register to submit your answer