营销人员的网络表单 - 成功行动
我需要其他成功的行动。是否可以扩展表格的这一部分?我已经添加了自定义字段和客户保存操作。我想重定向到特定的 URL,而不是树中的节点。这可能吗?我看到元数据下的成功模式列出了项目,但它们看起来并不与任何内容相关(假设它是在框架中硬编码的)
I need other success actions. Is it possible to extend this part of the form? I've already added custom fields and customer save actions. I would like to redirect to a specific URL, not a node in the tree. Is this possible? I see the Success Mode list items under Meta Data but it doesn't look like they are associated with anything (assuming it's hard coded in the framework)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
实际上,您可以使用现有的成功模式/重定向来做到这一点。无需选择或输入 Sitecore 项目的路径,而是使用成功页面字段上的插入外部链接选项。
编辑:
这是在表格本身上完成的。请务必使用“插入外部链接”按钮来设置该值。
You can actually do this with the existing Success Mode / Redirect. Instead of choosing or entering the path to a Sitecore item, use the Insert External Link option on the Success Page field.
EDIT:
This is done on the form itself. Be sure to use the Insert External Link button to set the value.
我自己尝试过,但最终不得不创建一个保存操作来进行重定向。我认为它是硬编码的,你无法访问它。如果您查看表单模板,您会看到有两个字段,一个用于成功消息,另一个用于成功页面。您可以尝试更改所有您想要的内容,但这不会影响任何内容。
更新:没有办法做到这一点。您必须从 sitecore 库引入大量代码并进行更改。成功是硬编码的,并且期望链接字段能够使用,即使模板可以是单行文本。
使用保存操作或让他们像其他答案建议的那样直接编辑模板。
I've tried this myself but I ended up having to just create a save action to do a redirect. I think it's hardcoded in a way that you can't get to it. If you look at the template for Form, you see there are two fields, one for Success Message and another for Success Page. You can try to change those all you want but it doesn't affect anything.
Update: There is no way to do it that is nice. You would have to bring in tons of code from the sitecore libraries and make changes. The success is hard coded and expects a linkfield to work with even though the template can be a single-line text.
Use the save action or have them edit the template directly like the other answer suggests.