简体   繁体   English

提交两次表单后,Drupal 7呈现的表单错误消息未显示

[英]Drupal 7 rendered form error messages not displaying after submitting form twice

In Drupal 7, I have created a custom template for user register page. 在Drupal 7中,我为用户注册页面创建了一个自定义模板。

The template name is page--user--register.tpl.php . 模板名称为page--user--register.tpl.php

We have managed to create the required look and feel. 我们设法创建了所需的外观。

Everything is working fine except the following: 除以下各项外,其他一切正常:

1) After user submits invalid form, it shows error messages. 1)用户提交无效表格后,它会显示错误消息。

2) User again submit the form and the error messages are not getting displayed. 2)用户再次提交表单,并且不会显示错误消息。

3) Though the invalid fields are being highlighted. 3)尽管无效字段被突出显示。

Any suggestions? 有什么建议么?

在Drupal中,所有错误消息都是使用$ messages模板变量从page.tpl.php打印的,并且您似乎还可以使用,是否对表单使用了任何ajax类型的行为?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM