<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Contains / Does Not Contain Rules</title><link>https://www.infopathdev.com:443/forums/thread/104255.aspx</link><pubDate>Wed, 07 Oct 2015 15:11:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:104255</guid><dc:creator>dangermouse</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/104255.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=104255</wfw:commentRss><description>Hello Everyone,

I am writing another insurance exam using InfoPath 2007. 
I am fairly experienced in this kind of task and have successfully designed several InfoPath templates for this purpose at our company.
I have text boxes for data entry, and rules to attribute scores based upon the data entered.

I would like to save time by using &amp;#39;Contains&amp;#39; / &amp;#39;Does not contain&amp;#39; rules using OR to set up multiple conditions quickly.
However I am finding that my rule doesn&amp;#39;t work as expected; and I wondered if anyone could give me some advice on how to fix it.

Example Question &amp;quot;Name 3 sections of insurance provided by wintersports cover?&amp;quot;
The answer could be any one of 4 sections of insurance - equipment / hire / pack / avalanche 

My rule is:
Set Condition
               Field name Q25a contains &amp;quot;equipment&amp;quot; OR
               Field name Q25a contains &amp;quot;hire&amp;quot; OR
               Field name Q25a contains &amp;quot;pack&amp;quot; OR
               Field name Q25a contains &amp;quot;avalanche&amp;quot;
Add Action
               Set a fields value Q25aResult = 1
Set Condition
               Field name Q25a does not contain &amp;quot;equipment&amp;quot; OR
               Field name Q25a does not contain &amp;quot;hire&amp;quot; OR
               Field name Q25a does not contain &amp;quot;pack&amp;quot; OR
               Field name Q25a does not contain &amp;quot;avalanche&amp;quot;
Add Action
               Set a fields value Q25aResult = 0
This is repeated over 3 fields QS2a / Q25b / Q25c

Test: &amp;quot;hire&amp;quot; is entered into field Q25a and a score of 1 is shown in field Q25aResult
HOWEVER - if &amp;quot;hire&amp;quot; is deleted and an incorrect word is entered, for example, &amp;quot;activity&amp;quot; the score of 1 still shows in Field Q25aResult
This is anticipates that someone sitting the exam might enter a correct answer but then change their mind and enter an incorrect answer.

Why is this? 
There doesn&amp;#39;t appear to be a conflict of rules. 
In english I was hoping that the rule is saying &amp;quot;If the word equipment or hire or pack or avalanche is in the field then show 1 in the other field but if the word equipment or hire or pack or avalanche is not entered in the field then show 0 in the other field&amp;quot;

How can I make sure that the score shown in Field Q25aResult is 0 if the data entered is changed to an incorrect answer?
Is there a better solution?

Thanks so much for looking at my post,

Mike</description></item></channel></rss>