Drupal:在Webform中的提交按钮上方添加免责声明文本 [英] Drupal: adding disclaimer text above the submit button in a webform

查看:283
本文介绍了Drupal:在Webform中的提交按钮上方添加免责声明文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种简单的方法来修改webform-form-tpl.php模板,以在Drupal webform中的提交按钮上方显示免责声明?我可以在按钮下面添加文本,但是不知道如何从其他元素中分离按钮,以在它们之间添加文本,即:

  [form-elements] 
[免责声明]
[提交按钮]


$ b $

解决方案

最简单的选择是将文本作为标记表单项使用 hook_form_alter 。 p>

Is there an easy-ish way to modify the webform-form-tpl.php template to show disclaimer text above the submit button in a Drupal webform? I can add text below the button, but do not know how to split up the button from the other elements to add text between them, ie:

[form-elements]
[disclaimer text]
[submit button]

Cheers!

解决方案

The easiest option is probably is insert the text as a markup form item using hook_form_alter on the form.

这篇关于Drupal:在Webform中的提交按钮上方添加免责声明文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆