Rules are based on the field the control is bound to changing values. If you select or clear the check box, that has no relation to whether you select a product. If you want both updates to change a field, you must have rules on both fields. If the price should only be changed if the check box is selected, you must account for that in your rules on both controls.
I hope this helps.

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
Yes, that worked -- thanks! However, now that I've added more rules, I get
the following error when filling out the form:
An error occurred in the form's code. The number of calls to the
OnAfterChange event for a single update in the data exceeded the maximum
limit.
Recommendations?
> Rules are based on the field the control is bound to changing values. If you select or clear the check box, that has no relation to whether you select a product. If you want both updates to change a field, you must have rules on both fields. If the price should only be changed if the check box is selected, you must account for that in your rules on both controls.
>
[quoted text clipped - 20 lines]
>
> Any help will be appreciated.
Josh Bertsch [MSFT] - 05 Nov 2004 02:04 GMT
InfoPath recognizes loops and stops them after 15 itereations (this, I
believe, is an IE limit). As such, if you have rule that has a calculation
that has a loop (a rule on a text box that has a rule that sets it value to
1 + itself). Or if you have > 15 rules that get fired after just 1 action
you will run into this.
--josh bertsch
> Yes, that worked -- thanks! However, now that I've added more rules, I
> get
[quoted text clipped - 39 lines]
>>
>> Any help will be appreciated.
Greg Collins [MVP] - 05 Nov 2004 19:27 GMT
You likely have a loop -- some value changing, firing a rule which changes another value, which in turn changes another value... and so it goes in an endless loop.
You will need to write code in your OnAfterChange event handler to return if the change was caused by a field you were expecting (i.e. because of your rules).

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
Yes, that worked -- thanks! However, now that I've added more rules, I get
the following error when filling out the form:
An error occurred in the form's code. The number of calls to the
OnAfterChange event for a single update in the data exceeded the maximum
limit.
Recommendations?
"Greg Collins [MVP]" wrote:
> Rules are based on the field the control is bound to changing values. If you select or clear the check box, that has no relation to whether you select a product. If you want both updates to change a field, you must have rules on both fields. If the price should only be changed if the check box is selected, you must account for that in your rules on both controls.
>
> I hope this helps.