I have created a custom button, and it works fine - it displays on the record page and sends the email once clicked.
I have a problem that when I send the email, it doesn't include the details of the record - I can get it to send with the record ID, eg 1, but not the actual details of the field.
I have at the top of the code
function dadabik_send_order($table_name, $where_field, $where_value) {
global $conn;
{
// Get the username of the logged-in user
$current_user = $_SESSION['logged_user_infos_ar']["id_user"];
and I have tried sql query to get the record info, but it doesn't show. Also I cannot get the details to show of the user's email address to add to the "from" and "reply to" field?
I have a problem that when I send the email, it doesn't include the details of the record - I can get it to send with the record ID, eg 1, but not the actual details of the field.
I have at the top of the code
function dadabik_send_order($table_name, $where_field, $where_value) {
global $conn;
{
// Get the username of the logged-in user
$current_user = $_SESSION['logged_user_infos_ar']["id_user"];
and I have tried sql query to get the record info, but it doesn't show. Also I cannot get the details to show of the user's email address to add to the "from" and "reply to" field?