我构建了一个多步骤联系表 7 调查问卷,它使用条件逻辑插件来帮助完成某些部分。
我在下面添加了问题区域,它是用户进行选择的表单的一部分,并根据他们的选择提供四个附加部分之一。
这一切都运作良好。在发送的电子邮件的消息正文中,此部分正确显示。其余 3 组隐藏且不显示。太棒了。
但是在我们测试过的使用其他 WordPress 插件生成的 PDF 中,不幸的是所有组标签都显示了。
有什么方法可以以不同的方式构建条件逻辑,或者是否有替代解决方案?
如有任何帮助或其他信息,请询问。
谢谢
联系表7
<div>
<h3>My Choice - Step 4</h3>
</div>
<div>Select 'ONE' procedure [radio procedure use_label_element "Mesh Tape" "Colposuspension" "Natural Tissue Sling" "Urethra Bulking Agent Injection"]</div>
<div>
[group mesh-selected clear_on_hide]
Statement 1 [text mesh-mesh1 use_label_element placeholder"Reason Why"]
Statement 2 [text mesh-colp1 use_label_element placeholder"Why I'm not"]
Statement 3 [text mesh-sling1 use_label_element placeholder"Why I'm not"]
Statement 4 [text mesh-ureth1 use_label_element placeholder"Why I'm not"]
[/group]
[group colp-selected clear_on_hide]
Statement 1 [text colp-colp2 placeholder"Reason Why"]
Statement 2 [text colp-mesh2 placeholder"Why I'm not"]
Statement 3 [text colp-sling2 placeholder"Why I'm not"]
Statement 4 [text colp-ureth2 placeholder"Why I'm not"]
[/group]
[group sling-selected clear_on_hide]
Statement 1 [text sling-sling3 placeholder"Reason Why"]
Statement 2 [text sling-colp3 placeholder"Why I'm not"]
Statement 3 [text sling-mesh3 placeholder"Why I'm not"]
Statement 4 [text sling-ureth3 placeholder"Why I'm not"]
[/group]
[group ureth-selected clear_on_hide]
Statement 1 [text ureth-ureth4 placeholder"Reason Why I'm"]
Statement 2 [text ureth-sling4 placeholder"Why I'm not"]
Statement 3 [text ureth-colp4 placeholder"Why I'm not"]
Statement 4 [text ureth-mesh4 placeholder"Why I'm not"]
[/group]
</div>
条件逻辑
show [mesh-selected] if [procedure] equals "Mesh Tape"
show [colp-selected] if [procedure] equals "Colposuspension"
show [sling-selected] if [procedure] equals "Natural Tissue Sling"
show [ureth-selected] if [procedure] equals "Urethral Bulking Agent Injection"
PDF 表单布局
MY CHOICE
---------
Chosen Procedure: [procedure][mesh-selected]
[mesh-mesh1]
[mesh-colp1]
[mesh-sling1]
[mesh-ureth1]
[/mesh-selected][colp-selected]
[colp-mesh2]
[colp-colp2]
[colp-sling2]
[colp-ureth2]
[/colp-selected][sling-selected]
[sling-mesh3]
[sling-colp3]
[sling-sling3]
[sling-ureth3]
[/sling-selected][ureth-selected]
[ureth-mesh4]
[ureth-colp4]
[ureth-sling4]
[ureth-ureth4]
[/ureth-selected]
PDF 截图
显示输入到一个字段部分的一些随机字符以及不幸显示的 [group][/group] 标签:
您的条件标签在表单结构上是封闭的,如下所示:
[group group-394][/group]
但是在 PDF 中你需要像这样关闭标签:
[group-394][/group-394]
这样您就可以隐藏单独的文本和问题。
此外,如果您像这样正确关闭标签:
[组-394][/组-394]
pdf 显示了标签。 不幸的是我测试了它并且我有同样的问题。