JQuery 表单向导可以提交“页面”吗?还没有显示的?

发布于 2024-12-14 12:39:38 字数 316 浏览 2 评论 0原文

我使用的是 JQuery Form Wizard 插件,没有最终的 AJAX 提交,只是常规的 POST。由于最终表单处理代码的复杂性,使用 AJAX 是不可行的。

问题是,出现错误时,我需要重新显示表单,并使用 formwizard('show', 'spanid' ) 将用户跳转到正确的页面。问题是,向导会将所有其他步骤视为未查看,并且当用户重新提交时不会重新提交其输入值。

我考虑过将所有其他输入复制到显示为隐藏字段的页面中,但实际上这是不可行的,涉及太多复杂的变量。

有谁知道是否可以指示插件提交所有输入,无论它们是否位于跳过的页面上?

谢谢。

I'm using the JQuery Form Wizard plugin without a final AJAX submit, just a regular POST. Using AJAX isn't feasible due to the complexity of the final form processing code.

The problem is that on an error I need to redisplay the form, and jump the user to the correct page with formwizard('show', 'spanid' ). The problem is that then the wizard counts all the other steps as not viewed and doesn't re-submit their input values when the user re-submits.

I have considered copying all the other inputs into the page being displayed as hidden fields but really this isn't feasible, there are too many complex variables involved.

Does anyone know if it's possible to instruct the plugin to submit all inputs regardless of whether they're on a skipped page?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瀟灑尐姊 2024-12-21 12:39:38

我不确定你的问题,但到目前为止我发现你想要提交,无论验证如何。

在表单向导中,您可以使用“formOptions”属性来定义您自己的提交。

即使它不是 ajax,你也可以简单地使用一些脚本来重定向。

希望它有帮助:-)

雷兹,
阿姆贾德

I am not sure about your question but so far what I found is you want to submit the for regardless of validation.

In form wizard you can use "formOptions" property to define your own submition.

even if its not ajax you can simply use some script to redirect.

Hope it helps :-)

Reards,
Amjad

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文