Drupal: adding disclaimer text above the submit button in a webform

为君一笑 提交于 2019-12-06 01:36:50

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

This worked for me :

$form['actions']['submit']['#prefix'] = 'Disclaimer...';

This doesn't really belong in the theme layer; it's content. You can add the disclaimer as a markup component to the end of the webform and it should appear after the other webform components and before the submit button like you want.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!