Home » Php » php – Fabrik form submission issue, getting JSON response instead of thank you page

php – Fabrik form submission issue, getting JSON response instead of thank you page

Posted by: admin April 23, 2020 Leave a comment

Questions:

I have a Joomla site 2.5.4 and contact form is build using Fabrik plugin. When I submit the contact form I receive a JSON response instead of thank you page.

I have set the form properly from the back-end as well. Please refer image below for details of back-end setup.

enter image description here

Please check JSON response below

{
msg: "Record added/updated",
url: "index.php?option=com_content&view=article&id=24",
baseRedirect: false,
rowid: "0",
redirect_how: "newpage",
width: 300,
height: 300,
x_offset: 0,
y_offset: 0,
title: "",
reset_form: true
}
How to&Answers:

i had something similar with telerik returning results as json instead of actual page, no solution was possible so i just recreated the same telerik element again and it works now.

try creating the element from scratch and compare the difference between previous and current version, to note the issue.

Answer:

i do not know much about joomla.but here is a thing your json should be in below format

{
"msg": "Record added/updated",
"url": "index.php?option=com_content&view=article&id=24",
"baseRedirect": false,
"rowid": "0",
"redirect_how": "newpage",
"width": 300,
"height": 300,
"x_offset": 0,
"y_offset": 0,
"title": "",
"reset_form": true
}

your key of json should also be in double quotes.