wordpress 如何在联系表 7 中隐藏字段

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/45094953/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 11:18:01  来源:igfitidea点击:

How to hidden field in contact form 7

wordpresshidden-fieldcontact-form-7

提问by Lu cas

sorry my english bad,i have a problem : i have a form, one field i store data and i want to hidden it, i used to tag hidden in contact form 7 but it is not working

对不起,我的英语不好,我有一个问题:我有一个表格,一个字段我存储数据,我想隐藏它,我曾经在联系表格 7 中标记隐藏,但它不起作用

my setting contact form 7 : Image setting form

Form after i set image form after set

我的设置联系表 7 : 图像设置表

我设置图像后的形式设置后的 形式

回答by baiju jha

You should use the below formatt

您应该使用以下格式

[hidden your-email default:user_email "[email protected]"]

[隐藏您的电子邮件默认值:user_email "[email protected]"]

for more detail follow the https://contactform7.com/hidden-field/

有关更多详细信息,请访问 https://contactform7.com/hidden-field/

回答by maulik

you may can use hidden field like this. Ex . [hidden name default:name "Abc User"]

您可以像这样使用隐藏字段。前任 。[隐藏名称默认:名称“ABC用户”]

回答by omukiguy

You can just add a class hidden as style.

您可以添加一个隐藏为样式的类。

[text class:hidden "Field Name"]

Then add this to your style sheet.

然后将其添加到您的样式表中。

.hidden {
    display: none!important;
}

回答by YoJey Thilipan

input:

输入:

[hidden form-name default:"popup contact form" ]

output:

输出:

<input type="hidden" name="form-name" value="popup contact form" class="wpcf7-form-control wpcf7-hidden">