根据复选框选择以编程方式显示/隐藏信息路径组

发布于 2025-01-04 12:38:10 字数 336 浏览 1 评论 0原文

我是 infopath 的新手,需要修改现有的 infopath 2010 表格。用户只希望根据用户通过复选框的选择来显示某些部分组。目前,表单上的每个组都有条件规则,这些规则正在根据选中的复选框来隐藏/显示部分。(每个复选框与一个组相关)。有19个复选框和相关组,用户可以选择1个或多个组。

问题是,当用户勾选复选框时,反应会出现延迟,因为每次点击都会进行很多条件检查。用户不喜欢这样。他们宁愿选择他们想要的所有复选框,然后单击一个按钮立即完成所有工作(而不是在每个复选框上)。因此,我一直在尝试以编程方式从按钮后面的代码访问这些组,以根据选择的复选框隐藏/显示它们。是否甚至可以在后面的代码中设置组的隐藏/显示属性? 预先感谢您的任何帮助

i'm new to infopath and need to ammend an existing infopath 2010 form. The users only want certain section groups to appear based on the users choice via checkboxes. Currently there are conditional rules in place for each group on the form which are working to hide/show the sections depending on whcih checkbox or checkboxes are selected.(each checkbox relates to a group). There are 19 checkboxes and related groups, the users can select 1 or more groups.

The problem is when users tick the checkbox , there is a delayed reaction seeing as there are so many condtional checks taking place on each click.The users dont like this. they would rather selct all the checkboxes they want , and then click a button to do all the work at once(instead of on each checkbox). So i've been trying to programmatically access the groups from the code behind the buttons to hide/show them depending on which checkboxes are selected. Is it even possible to set the hide/show property of a group in the code behind ?
Thanks in advance for any help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

少年亿悲伤 2025-01-11 12:38:10

您无法直接使用代码显示或隐藏部分,但可以影响数据源,从而触发规则。

请参阅此处以编程方式更新数据源:
http://www.bizsupportonline.net/browserforms/programmatically -enable-disable-control-infopath-form.htm

You can't show or hide sections directly with code, but you can affect data sources, which in turn can trigger rules.

See here for updating the data source programatically:
http://www.bizsupportonline.net/browserforms/programmatically-enable-disable-control-infopath-form.htm

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文