DotNetNuke——在表单中插入 URL 参数
我们正在将我们的网站迁移到 DotNetNuke,并希望复制我们的调查页面的功能。目前,在我们通过 CRM 系统发送的每封电子邮件的底部,都有一个满意度调查的链接以及一些用于预填充某些字段的参数。所以 URL 看起来像这样:
/survey.aspx?ticketID=1234&userName=John+Doe
我发现自定义模块“helferlein_Form”似乎可以实际创建用户填写的表单,但我没有看到一种预填充字段的方法。 DotNetNuke 确实允许您插入令牌(例如:[Date:now]、[User:username]),但我没有找到从 URL 获取单个参数的方法。我缺少什么可以让我这样做吗?
We are migrating our website to DotNetNuke and are looking to replicate the functionality of our survey page. Currently, on the bottom of every e-mail we send through our CRM system, there is a link to a satisfaction survey along with some parameters to pre-populate some of the fields. So the URL looks something like like:
/survey.aspx?ticketID=1234&userName=John+Doe
I found the custom module "helferlein_Form" which seems okay for actually creating the form that the user fills in, but I don't see a way to pre-populate the fields. DotNetNuke does let you insert tokens(ex: [Date:now], [User:username]), but I don't see a way to grab individual parameters from the URL. Is there something I'm missing that will let me do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我也不熟悉该模块,但我强烈建议使用 Xmod 进行自定义允许您轻松获取 url 参数的表单。
I'm not familiar with that module either, but I would strongly recommend using Xmod for customized forms that allow you to easily grab url parameters.
我不确定您引用的模块。
然而,根据我的经验,Data Springs 的动态表单非常适合这个要求。它能够预填充甚至运行自定义 SQL 查询来获取数据。
I'm not sure about the module you reference.
However, in my experience Dynamic Forms from Data Springs would fit the bill perfect. It has the ability to pre-fill and even run custom SQL queries to get data.
您绝对应该尝试我们的我的令牌 模块。
它允许您使用 [Get:ticketID] 或 [QueryString:tickedID] 访问 URL 参数。您还可以构建使用这些参数返回项目列表的 SQL 令牌,例如填充下拉列表。
还可以尝试我们的 Action Form 模块与“我的代币”集成得非常好。
You should definitely try our My Tokens module.
It allows you to access the URL parameters using [Get:ticketID] or [QueryString:tickedID]. You can also build SQL tokens that use these parameters to return a list of items for example to populate a dropdown.
Also try our Action Form module which integrates very nice with My Tokens.
如果您有一个喜欢并想要使用的模块,您可以随时编写一些 JavaScript 来从 URL 中获取变量,并使用 JavaScript 预先填充您的表单字段。
If you have a module you like and want to use you can always write a little javascript to grab the variables out of the URL and pre-populate your form fields using javascript.