Drupal Webforms 模块 - 表单结果显示“Array”而不是表单值
我有一个使用 Drupal 中的 Webforms 模块构建的简单表单。标准文本字段表单字段工作得很好。但是,如果我使用预设的日期或时间表单值,则在提交表单时不会正确通过电子邮件发送它们。
例如,如果我的表单中有一个日期字段,它会很好地提交并在结果页面上呈现,但如果我希望该值包含在电子邮件中,它将在文本中显示为“数组”电子邮件而不是显示日期。
模块问题页面中有一个开放的支持问题,但我希望获得任何其他帮助。
I have a simple form built with the Webforms module in Drupal. The standard textfield form fields work perfectly. However if I use the preset date or time form values, they don't get emailed properly when the form is submitted.
For instance, if there was a date field in my form, it would submit fine and render on the results page just fine, but if I wanted that value to be included in an email, it would show up as "Array" within the text of the email instead of showing the date.
There is an open support issue within the module issues page, but I'm hoping for any additional help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我还没有尝试过网络表单,所以可能存在问题或其他问题。但是,听起来您正在向邮件添加一组值而不是实际值。如果这是由于错误的设置或网络表单中的错误造成的,我不能说。
I haven't tried webform, so there might be an issue or something. However, it sounds like you are adding an array of values to the mail instead of the actual value. If this is due to the wrong setup, or a bug in webform, I can't say.
它实际上是一个数组 - 请参阅 http://drupal.org/node/448954 了解信息。对于日期字段,日期部分位于编号数组中。
It is in fact an array - see http://drupal.org/node/448954 for info. In the case of date fields, the date parts are in a numbered array.