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?
You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.
Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"
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://babia.to/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();
}
We get it, advertisements are annoying!
However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.
If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.