cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Logical values

I need create a formula for hide a select controlos.
What is the best pratice
I do:

Formula Builder

There is other way  like if emailuser not in ('aaaa','bbbb','ccccc')

Labels: (1)
0 Kudos
Reply
2 Replies
Workflow Hero

Re: Logical values

Hi Jose,

I guess both the formula (the way you have used) are different ...

If(emailuser!="jose.fidalgo@coficab.com" || emailuser!="ricardo.almeida@coficab.com" || emailuser!="amelia.paulino@coficab.com" || emailuser!="cedric.soares@coficab.com" )

In the above example -

if emailuser = jose.fidalgo@coficab.com, then the condition emailuser!="ricardo.almeida@coficab.com" will be true and it will disable the control .. you might probably need && (and clause) to be sure that all the conditions are checked? 

Regards,

Shrini

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Logical values

Hi Jose,

are you trying to disable the control for specific users?

Another approach might be to add your users to a new SharePoint group. Afterwards you place a rule on your control which is:

fn-DoesMemberExistInAudience(current user, your new groups name)

The inline function will check if the current user is in the group specified. If true you can disable/hide the control. The method is an inline function. Rules will only show you runtime functions so you will have to copy/write the function's name itself but they do work flawless in rules and also mobile apps so you should give it a try.

Kind regards,
Enrico

Accept as Solution Reply