Add hidden data to webhook payload
This commit is contained in:
parent
f5ff94b508
commit
977cd1647a
|
@ -55,7 +55,7 @@ class PostFormDataToWebhook implements ShouldQueue
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getWebhookData(FormSubmitted $event): array {
|
private function getWebhookData(FormSubmitted $event): array {
|
||||||
$formatter = (new FormSubmissionFormatter($event->form, $event->data));
|
$formatter = (new FormSubmissionFormatter($event->form, $event->data))->showHiddenFields();
|
||||||
|
|
||||||
$formattedData = [];
|
$formattedData = [];
|
||||||
foreach ($formatter->getFieldsWithValue() as $field) {
|
foreach ($formatter->getFieldsWithValue() as $field) {
|
||||||
|
|
Loading…
Reference in New Issue