Conditional Formatting

R

Rodman

Using Infopath (2007) I am trying to create a rule with multiple conditions.
From my attempts (and an article/blog I read) it seems that the Infopath GUI
limits conditional formatting to a total of 5 conditions per rule.

Is there any way around this without having to write code?

Thanks In Advance
 
M

Mike

I guess it depends on the conditions you are trying to create. I've used a
condition that was using "the expression" with the value

my:Field1 = "somevalue" and my:Field2 = "someothervalue" and my:Field3 =
"some3rdvalue"

That may allow you sqeeze in some more conditions.
 
R

Rodman

Mike, thanks for your reply...

Specifically, I am trying to test if a field: Username is not equal to 7
names listed seperately in the condition (i.e., if username != AAA and
username != BBB, etc). As stated in the original note the GUI only lets you
test 5 conditions
 
M

Mike

I think that should still work.

On the condition screen first drop down select "The expression"
in the blank type in one continuous line:

my:Username != "aaa" or my:Username != "bbb" or my:Username != "ccc" or
my:Username != "ddd" or my:Username != "eee" or my:Username != "fff" or
my:Username != "ggg" or my:Username != "hhh"

You could do that with and/or and using multiple fields all in one
expression and it only counts as 1 condition
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top