InfoPath 2003 中的隐藏部分
我在 2003 年创建了一个 infopath 表单,我只希望根据用户的选择显示某些部分/控件。我知道必须应用一些规则和条件,但是我已经添加了当用户从下拉列表中选择选项时需要显示的所有部分/字段。我的主要问题是,如何在表单上隐藏此信息?当我选择“预览表单”时,所有部分都会出现,但尚未选择任何选项。如何隐藏这些直到用户做出选择。我希望回答这个问题能够帮助我完成表格的其余部分。
谢谢你~
I am creating an infopath form in 2003 where I only want certain sections/controls to appear based on the users choice. I am aware that there are rules and conditions that will have to be applied to this, however I have already added all of the section/fields that need to appear when a user selects an option from the dropdown. My main question is, how do I hide this info on the form? At the moment when I select 'Preview Form' ALL of the sections appear and no option has been chosen yet. How do I hide these until a user makes a selection. I hope answering this question, will help me with the rest of the form.
Thank You~
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在一个部分的条件格式选项中指定多个条件。要在加载时隐藏该部分的最简单方法是将该部分的条件格式设置为正常规则或为空白。
例如,您有一个下拉列表,其中包含“选择”、“显示”、“隐藏”成员。只要选择“隐藏”,就应该隐藏该部分的条件格式,或者只要选择“选择”,就应该隐藏该部分的条件格式(请注意,下拉列表的“选择”的默认值为“为空”)。
You are allowed to specify multiple conditions in the conditional formatting options for a section. The easiest way for the section to be hidden on load is to set the conditional formatting for the section to your normal rules OR is blank.
So for example - you have a dropdown that has members Select, Show, Hide. Your conditional formatting on the section should be hide whenever Hide is chosen OR hide whenever Select is chosen (note that the default value of Select for a dropdown is "is blank").
假设您有 1 个下拉列表和 2 个部分。最初,这 2 个部分应隐藏,当用户从下拉列表中选择一个值时,您将根据 ddl 选择的值显示这 2 个部分之一。
将一个名为firstTime 的字段添加到您的架构中,默认值为0。
如果firstTime = 0或ddlChoice = 2,第1部分将被隐藏
如果firstTime = 0或ddlChoice = 1,第2部分将被隐藏
当 ddl 索引更改时,将firstTime设置为1。这样条件的第一部分将不会产生任何影响,您将仅依赖于下拉列表的值来显示/隐藏这些部分。
Let's assume you have 1 drop down list and 2 section. Initially the 2 sections should be hidden, when the user selects a value from the drop down list you will show one of these 2 sections based on the ddl selected value.
Add a field to your schema called firstTime with default value 0.
Section 1 will be hidden if firstTime = 0 or ddlChoice = 2
Section 2 will be hidden if firstTime = 0 or ddlChoice = 1
When the ddl index changes set firstTime to 1. This way the first part of the condition won't have any effect and you will only depend on the value of the drop down list to show / hide the sections.