Remember me

Integration of php-scripts

7 months 2 weeks ago #1

  • Matthias's Avatar
  • Matthias
  • Posts: 6
Dear Balboa Team,

I want to integrate a PHP script to my Form, but i don’t see any tool to check the logs or the output.
The Script should send a web request on an hosted Web API, but I want to ckeck the request before I send it to the effective system.

$fieldEmail = '[Field ID=3]';
$fieldName = '[Field ID=1]';
$fieldCompany = '[Field ID=2]';

$name = $this->data($fieldName, "Unnamed User");
$email= $this->data($fieldEmail, This email address is being protected from spambots. You need JavaScript enabled to view it.);
$company = $this->data($fieldCompany, "samplecompany");

// Populate the data that will be sent
$data = [
'name' => $name,
'company' => $company,
'email' => $email,


$options = [
'Content-Type' => 'application/json',
'AppOption' => 'i am option'

// Set the URL that will retrieve the data
$url = 'i am url';

$data = json_encode($data);

// here is the call and response I want to see displayed
$response = JHttpFactory::getHttp()->post($url, $data, $options);
//echo '<pre>';
//echo '</pre>';

return 1;

7 months 2 weeks ago #2

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
Thank you for contacting us

You need to debug this script somewhere, so that it goes where it needs to,
and then add to the form and it will replace the shortcodes and if the script is working, get your result


5 months 3 weeks ago #3

  • Bert's Avatar
  • Bert
  • Posts: 20
Hi , did you manage to implement this? I have a similar need: in the form I need to have a price calculation based on the choosen input/select. That calculation gets 2 values on an external API server. So I need to do an API call in the Form. Is that possible? Can Balbooa support this (paid if necessary)?

5 months 3 weeks ago #4

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858

Technical support does not provide paid services

Best Regards,
Vyacheslav, Balbooa Support Team
Powered by Kunena Forum