一次设置 InfoPath 表单中多个控件的格式

发布于 2024-10-31 03:22:46 字数 258 浏览 4 评论 0原文

我正在创建一个表单,需要有 30 个或更多字段被禁用或设置为只读。如果它们基于下拉框的值,则需要对其进行标记。

这是我可以使用我知道的条件格式来完成的事情,我想知道是否有一种方法可以同时将条件格式添加到多个控件,或者我可以设置一个规则来完成同样的事情?

一个要求是我不能使用编程代码来执行此操作。我意识到这样做可能会容易得多,但这是我的经理给我的要求。

编辑:忘记添加此内容,当其他字段为只读时,仍有一些字段需要编辑。

I am creating a form that needs to have 30 or more fields either disabled or set to be read only. They need to be marked as such if the based on the value of a drop-down box.

This is something that I can do using conditional formating that I know, what I want to know is there a way to either add conditional formatting to multiple controls at once or a rule that I can set that will accomplish the same thing?

One requirement is that I can't use programming code to do this. I realize it would probably be far easier to do that way but that is a requirement given to me by my manager.

EDIT: Forgot to add this there are fields that still need to be edited when the other fields are read only.

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

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

发布评论

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

评论(2

不离久伴 2024-11-07 03:22:46

InfoPath 2010(不记得是不是 2007 年)中的一项功能可以减少此类重复性工作的痛苦,那就是复制和粘贴规则的能力。有了这个,您可以创建一次只读规则,然后将其粘贴到需要它的 30 个控件中的每一个上。

One feature in InfoPath 2010 (can't remember if it was in 2007) that reduces the pain of this sort of repetitive work is the ability to copy-and-paste rules. With this you can create your read-only rule once and then just paste it onto each of the 30 controls that need it.

香草可樂 2024-11-07 03:22:46

您可以将其全部放在一个部分中,但部分的唯一选项是隐藏/显示(不是禁用或只读)。否则,您必须根据该下拉列表设置所有字段。巨大的痛苦,但至少你只需要做一次。

另一种方法是设置两个视图,其工作量也差不多。一种是只读的,一种是普通的。当用户更改下拉列表时,只需翻转视图即可。此方法有很多显示细微差别,但确实有效。

You could put it all in a section but your only option for sections is hide/show (not disable or read only). Otherwise you have to setup all the fields against that one dropdown. Huge pain but at least you only have to do it once.

An alternative, which is just about as much work, is to setup two views. One that is readonly and one that is normal. When the user changes the dropdown just flip the view. This method has a bunch of display nuances but does work.

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