如果username()不包含某个名称,则使用规则隐藏Button [英] Hide a Button using a rule if the username() does not include a certain name

查看:72
本文介绍了如果username()不包含某个名称,则使用规则隐藏Button的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被要求隐藏一个可以切换InfoPath表单视图的按钮。

I have been asked to the hide a button that will switch a view of the InfoPath form.

我有5个名字,我有一个用户名()字段,会看到谁在形式。如果你不是5个名字中的一个,那么该按钮就不会出现。

I have the 5 names, I have a username() field that will see who is in the form. if you are not one of the 5 name then the button will not show up.

我试图使用规则,但是5个名字和它不起作用。 如果您不属于可以看到该按钮的5个人,如何设置规则以隐藏按钮。

I tried to use rules but the on 5 names and it does not work.  How do I setup the rule to hide the button if you are not part of the 5 people that can see the button.

当我这样设置时,这不起作用:

this did not work when I set it up like this:

用户不等于user1   或

User not equal to user1    or

用户不等于user2   或

User not equal to user2    or

用户不等于user3   或

User not equal to user3    or

用户不等于user4   或者

User not equal to user4    or

用户不等于user5

User not equal to user5

如何让规则生效?

推荐答案

您好,

尝试 AND 而不是OR并检查。

Try AND instead of OR and check .


这篇关于如果username()不包含某个名称,则使用规则隐藏Button的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆