简体   繁体   English

Drupal 7-节点引用无法自动完成

[英]Drupal 7 - Node reference not autocomplete

I would like to have a node reference field as a text field with NO autocomplete. 我想将节点引用字段作为没有自动完成功能的文本字段。 How can I get it? 我怎么才能得到它?

Thanks 谢谢

You can use hook_form_alter () to alter this form, and then unset the #autocomplete_path property from your text field. 您可以使用hook_form_alter ()更改此格式,然后从文本字段中取消设置#autocomplete_path属性。

Example: 例:

unset($form['myfield']['#autocomplete_path']);

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

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