Browser: Chrome 150.0.7871.188
OS: Windows
URL: Form Bug – Adnan Shafi
This bug only happens when I add a custom value to the name attribute on the native Bricks Builder Form AND set it to required. Setting that custom name value field to required always returns an error when submitting as if I did not fill the fields. But as soon as I disable the required toggle, the submission goes through successfully.
To bypass this issue, I thought why not format a custom payload for the webhook which is exactly what I did, but there is a problem there too.
When data format is set to JSON, it is fine, but when I set it to Form data, I get errors, the submission never happens and here’s what I see in console:
bricks.min.js?ver=1785758127:1
POST https://adnanshafi.com/wp-admin/admin-ajax.php 500 (Internal Server Error)
bricksSubmitForm @ bricks.min.js?ver=1785758127:1
(anonymous) @ bricks.min.js?ver=1785758127:1
My payload is formatted like this:
{
“entry.1244623032”: “{{bbd65b}}”,
“entry.981485556”: “{{aedce8}}”
}
Setting the data type to Form Data is crucial as many platforms need that formatting such as Mautic and Google Forms.
Please let me know if I am doing something wrong or if it is a genuine bug.