starkids
Active member
- Sep 21, 2020
- 122
- 40
- 28
create new webhook with another numberI want to enter several numbers instead of one number in the number field To send a message to several people after sending the form Is there a way?
create new webhook with another numberI want to enter several numbers instead of one number in the number field To send a message to several people after sending the form Is there a way?
how to make this
hi bro can its work with templates massage too? thx
i think just copy paste like this... and works 6 list menuhow to add new line in message ?
// auto respon lists
function lists(){
$sections = [
[
"title" => "This is List menu",
"rows" => [
["title" => "List 1", "description" => "this is list one"],
["title" => "List 2", "description" => "this is list two"],
["title" => "List 2", "description" => "this is list two"],
["title" => "List 2", "description" => "this is list two"],
["title" => "List 2", "description" => "this is list two"],
["title" => "List 2", "description" => "this is list two"],
]
]
];
i tried to use Gravity Forms Webhooks Add-On v1.5 but no settings page is able to help me how to find the solutionHow to integrate MPWA with Gravity Form
1. Download Gravity WebHook https://babiato.tech/resources/gravity-forms-webhooks-add-on.4854/
(Download - Upload - And Activated)
2. Go to the form - setting - webhook
3. Follow this seting
![]()
![]()
Request URL(Required) : http://yourdomain.com/send-message
Request Method(Required) : POST
Request Format(Required) : JSON
Request Body :
api_key = YOUR_API_KEY
sender = NUMBER_ON_MPWA
number = NUMBER_RECIVER_GET_FROM_FORM
message = GET_FROM_FORM
You can customize message with merge tag,
and make sure there is no whatsapp gateway plugin for gravity forms from other platforms, because it can make the Rest API not run normally.
Thanks for @Morehere
Anything is possible using webhook.is possible to get data from database, ex when i sent a key like "ID" and webhook will run query to select by "ID" recieve and put in message auto reply?
As per your code I guessed scenario and corrected code. Try this and let me know. Also I don't know $result output.please i nee some help, i try to make auto reply with checking from database and it working with select but not working for update. What i was expecting is when user sent dynamic company_code ( for example is 60737 ) it will check if exist will do update value from column status to "disable" and sent feedback. Thank you for any sugestion it mean a lot to me
if($message === $cpBiller){
$updateQuery = "UPDATE biller SET status = 'Disable' WHERE company_code = $message;";
$results = $this->dbCon->query($updateQuery);
if(isset($results)){
$respon = ["text" => 'Status successfully disabled'];
}else{
$respon = ["text" => 'Please try again with valid company code'];
}
} else if($message === 'gambar'){
$respon = gambar();
} else if($message === 'tes button'){
$respon = button();
} else if($message === 'lists msg'){
$respon = lists(); }
echo json_encode($respon);
?>
if($message == $billername){
$sql = "UPDATE biller SET status='Disable' WHERE company_code = $message";
if (mysqli_query($conn, $sql)) {
$respon = ["text" => "Disable Sukses"];
} else {
$respon = ["text" => "Error updating record: " . mysqli_error($conn)];
}
$conn->close();
}