Get form fields data on form submission using forminator plugin

While I can’t comment on Forminator on this stack, there is a basic mistake involving add_action causing the error message in your log. The cause of this is that your function requires 2 arguments to work, but you did not tell add_action this, so it used the default 1: add_action( string $hook_name, callable $callback, int … Read more

Can’t save formdata in DB

You must define the checkbox to store array in order to get all the selected values. Change your input name from “data-ids” to “data-ids[]”. <input name=”data_ids[]” value=”<?php echo get_the_ID(); ?>” <?= isset($results[get_the_ID()]->data_id) == get_the_ID() ? ‘checked’ : ” ?> type=”checkbox” />