You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php
namespace FreeformModule\controllers;
use craft\web\Controller;
use Solspace\Freeform\Freeform;
use yii\web\Response;
class FormController extends Controller
{
protected array|bool|int $allowAnonymous = true;
public function actionIndex(): string
{
return 'Welcome to the Craft Freeform Form Controller';
}
public function actionProperties(int $formId): Response
{
$form = Freeform::getInstance()->forms->getFormById($formId);
if ($form) {
return $this->asJson($form->toArray());
}
return $this->asJson(['message' => 'Form was not found']);
}
}
Screenshots from the plugin:
Screenshot from the GraphQL (captcha is visible there):
Screenshot from the /freeform/form/properties/[form_id] route response:
Could you please have a look on it?
Thank you in advance!
Errors and Stack Trace (if available)
How can we reproduce this?
Configure reCAPTCHA in the Plugin Settings (enable by default)
Hit the /freeform/form/properties/[form_id] route to see if "captcha" values are visible in the response
Freeform Edition
Pro
Freeform Version
5.9.4
Craft Version
4.14.3
When did this issue start?
No response
Previous Freeform Version
No response
The text was updated successfully, but these errors were encountered:
Stalex89
changed the title
[5.x.x] Freeform/form/properties/[id] endpoint does not return a captcha data
[4.x.x] Freeform/form/properties/[id] endpoint does not return a captcha data
Jan 31, 2025
Stalex89
changed the title
[4.x.x] Freeform/form/properties/[id] endpoint does not return a captcha data
[5.9.4] Freeform/form/properties/[id] endpoint does not return a captcha data
Jan 31, 2025
What happened?
According to a docs on how to create PHP endpoints modile for a headless website Freeform module endpoint will return a captcha data in the JSON response
After following the steps we've created module with endpoints, however /freeform/form/properties/[form_id] does not return the captcha value.
code from PHP module:
/modules/freeform-module/Module.php
/modules/freeform-module/controllers/FormController.php
Screenshots from the plugin:
Screenshot from the GraphQL (captcha is visible there):
Screenshot from the /freeform/form/properties/[form_id] route response:
Could you please have a look on it?
Thank you in advance!
Errors and Stack Trace (if available)
How can we reproduce this?
Freeform Edition
Pro
Freeform Version
5.9.4
Craft Version
4.14.3
When did this issue start?
No response
Previous Freeform Version
No response
The text was updated successfully, but these errors were encountered: