Hi @alwanma27
Thank you for response!
I tested it again and yes, you are right. I took another closer look at this code and checked it against our API docs and what I got in DB and the solution here is to make a small change, replacing this line
Forminator_API::add_form_entries($form_id1, $entry_meta);
with this
Forminator_API::add_form_entry($form_id1, $entry_meta);
This is because you’re actually adding a single entry to the form – even though with multiple fields.
Note: of course you still need to make sure that field ID’s (like “text-2”, “email-1” etc) and form IDs are correct but other than this, this change should solve the issue for you.
Best regards,
Adam