Fabrik表单提交问题,获取JSON响应而不是感谢页面

Sas*_*shi 30 php forms joomla

我有一个Joomla网站2.5.4,并使用Fabrik插件构建联系表单.当我提交联系表单时,我会收到JSON响应,而不是感谢您的页面.

我也从后端正确设置了表单.有关后端设置的详细信息,请参阅下图.

在此输入图像描述

请检查下面的JSON响应

{
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
}
Run Code Online (Sandbox Code Playgroud)

Rah*_*ngh -1

我对 joomla 不太了解,但是你的 json 应该采用以下格式

{
"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
}
Run Code Online (Sandbox Code Playgroud)

你的 json 密钥也应该用双引号引起来。