I'm having trouble with a set of rules I have setup in infopath 2010 form for a sharepoint list (list is in sharepoint 2010)
I have a field (targetfield) that I want to set the value to either 1, 2 or 3 based on a number of combinations of values in other fields
I have 3 boolean fields (year1, year2 and year3) that check when a running total becomes greater than zero over time. These fields are defaulted to false initially using a form load rule if no data has been entered in the form. If the running total becomes great than zero in the second year then "year2" and "year3" fields return a value of true and "year1" remains false etc. I now want to run a calculation that populates "targetfield" based on the year that total becomes true (calculation will differ depending on which year it first becomes true).
I have setup 3 rules on "targetfield"
rule1: if yr1 = true then set value of targetfield to 1, rule2: if yr2=true AND yr1=false then set value of targetfield to 2, rule3: if yr3=true AND yr2=false then set value of targetfield to 3
for some reason this will not set the value based on these conditions. I have replicated these exact same rule conditions to change the formatting of the field and these work as expected and without issue.
Any ideas on what I may be missing?
Thanks, Sean