SilverStripe 表单分页
SilverStripe form pagination
我在 SilverStripe 页面上使用一个表单,该表单目前很长。我正在寻找一种可以对表单进行分页的方法。我想显示 5 个字段。填写完这些字段后,用户可以单击下一步并显示接下来的 5 个字段。还需要一个上一个按钮。感谢您的帮助,如果您需要更多信息,请告诉我。
您可能想查看 multi-step-form module :"MultiForm is a SilverStripe module, allowing flow control for forms, and step process to be automatically determined based on configuration variables on each step class. It augments the existing Form class in SilverStripe."
我相信这可以让你做你想做的事。 github 存储库有一个完整的设置示例,我建议您详细阅读它。
我在 SilverStripe 页面上使用一个表单,该表单目前很长。我正在寻找一种可以对表单进行分页的方法。我想显示 5 个字段。填写完这些字段后,用户可以单击下一步并显示接下来的 5 个字段。还需要一个上一个按钮。感谢您的帮助,如果您需要更多信息,请告诉我。
您可能想查看 multi-step-form module :"MultiForm is a SilverStripe module, allowing flow control for forms, and step process to be automatically determined based on configuration variables on each step class. It augments the existing Form class in SilverStripe."
我相信这可以让你做你想做的事。 github 存储库有一个完整的设置示例,我建议您详细阅读它。