double check the triggers - email from update form
Hi Jason, Have tried changing the trigger on the UE to be the same as the update form, but this still does not work (code below)
<?php
// WA Application Builder Update
if (isset($_POST["submit"])) // Trigger
{
$WA_connection = $DBNAME;
$WA_table = "properties";
$WA_redirectURL = "";
$WA_keepQueryString = false;
$WA_indexField = "MainPropertiesID";
$WA_fieldNamesStr = "Status";
$WA_fieldValuesStr = "".((isset($_POST["status"]))?$_POST["status"]:"") ."";
$WA_columnTypesStr = "',none,''";
$WA_comparisonStr = "=";
$WA_fieldNames = explode("|", $WA_fieldNamesStr);
$WA_fieldValues = explode("|", $WA_fieldValuesStr);
$WA_columns = explode("|", $WA_columnTypesStr);
$WA_where_fieldValuesStr = "".((isset($_POST["WADAUpdateRecordID"]))?$_POST["WADAUpdateRecordID"]:"") ."";
$WA_where_columnTypesStr = "none,none,NULL";
$WA_where_comparisonStr = "=";
$WA_where_fieldNames = explode("|", $WA_indexField);
$WA_where_fieldValues = explode("|", $WA_where_fieldValuesStr);
$WA_where_columns = explode("|", $WA_where_columnTypesStr);
$WA_where_comparisons = explode("|", $WA_where_comparisonStr);
$WA_connectionDB = $database_DBNAME;
mysql_select_db($WA_connectionDB, $WA_connection);
if (!session_id()) session_start();
$updateParamsObj = WA_AB_generateInsertParams($WA_fieldNames, $WA_columns, $WA_fieldValues, -1);
$WhereObj = WA_AB_generateWhereClause($WA_where_fieldNames, $WA_where_columns, $WA_where_fieldValues, $WA_where_comparisons );
$WA_Sql = "UPDATE `" . $WA_table . "` SET " . $updateParamsObj->WA_setValues . " WHERE " . $WhereObj->sqlWhereClause . "";
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
if ($WA_redirectURL != "") {
if ($WA_keepQueryString && $WA_redirectURL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "" && sizeof($_POST) > 0) {
$WA_redirectURL .= ((strpos($WA_redirectURL, '?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
}
header("Location: ".$WA_redirectURL);
}
}
?>
<?php
if ((isset($_POST["submit"]))) {
//WA Universal Email object="mail"
//Send Loop Once Per Entry
$RecipientEmail = "recipient@recipient.com";include("WA_Universal_Email/WAUE_Admin_properties_Update_1.php");
//Send Mail All Entries
if ("properties_Results.php"!="") {
header("Location: properties_Results.php");
}
}
?>
The update is set to trigger when the button Submit is pressed:
// WA Application Builder Update
if (isset($_POST["submit"])) // Trigger
{
the first universal email behavior is set to trigger when the button test is pressed:
<?php
if ((isset($_POST["test_x"]))) {
//WA Universal Email object="mail"
the second is set to trigger when the button reset is pressed:
<?php
if ((isset($_POST["reset"]))) {
//WA Universal Email object="mail"
try setting the UE behaviors to use the same trigger as the update behavior, button submit pressed.