Products
GG网络技术分享 2025-03-18 16:12 2
I have contact form on my website and want to change one thing. My contact form have checkboxes and I want to send different text than is in checkbox. For example: I have checkbox with text \"Test\" and I want to send in mail \"11:30 Tested\". I try to do that in so many ways, but it\'s not working and I don\'t know where is problem. I check \"hidden fields\", but when I don\'t check my checkbox, in mail I have this hidden text.
Next to I try this:
But I can\'t change my text, when checkbox is checked. When it is empty, this field send me \"nej\", but I want nothing :)
I saw this topic:
If I have empty checkbox, cf7 send me text, like in hidden fields. Maybe this code can help me?
I have twenty checkboxes and I want to send different text from them, when they are checked. If not - I want to send nothing :)
Someone help me with this? Thanks so much!
RafaelPS I use Contact Form 7 in Wordpress to do that.
图片转代码服务由CSDN问答提供
感谢您的意见,我们尽快改进~
功能建议我的网站上有联系表格,想要改变一件事。 我的联系表单有复选框,我想发送不同于复选框的文本。 例如:我有复选框,文本“测试”,我想发送邮件“11:30测试”。 我尝试在很多方面做到这一点,但它不起作用,我不知道问题在哪里。 我检查“隐藏字段”,但是当我不检查我的复选框时,在邮件中我有这个隐藏文本。</ p>
接下来我试试这个:</ p>
但是当选中复选框时,我无法更改文本。 当它为空时,这个字段发给我“nej”,但我什么都不想:)</ p>
我看到了这个话题:</ p>
cf7发送前 </ p>
如果我有空的复选框, cf7发送文本,就像隐藏字段一样。 也许这段代码可以帮助我吗?</ p>
我有二十个复选框,我想在检查时发送不同的文本。 如果没有 - 我想什么都不发送:)。</ p>
有人帮我这个吗? 非常感谢!
Rafael </ p>
PS我在Wordpress中使用Contact Form 7来做到这一点。</ p>
</ div>
Contact Form 7 supports pipes (\\\"|\\\") as a separator of what users see and what is the actual value of the input. You can use it like that.
[checkbox* test_checkbox use_label_element “Test|11:30 Test” “Test 2|12:30 Test”]
Demand feedback