Hi,
I have a repeating section called "YearlySpendingPlans". In that section there is a field "YearlyTotal".
Outside of this section, there is a field called "RequiredFundsTotal". (FYI the way the form works is that I want a check between what the user "wants" and what they "need" to do the work they are proposing to do. The RequiredFundsTotal field looks at funds required for this year. On the other hand, the spending plans are developed for this year AND future years. )
I want to put a Validation Rule on "Required Funds Total" (which looks at funds for this year) to check for equality against the first "YearlyTotal" field in the repeating table. I've tried the following logic...
Validate "RequiredFundsTotal" --> condition: Is not equal to --> ../../../my:SpendPlanBucket/my:YearlySpendingPlans/my:YearlySpendingPlan[count(preceding-sibling::*) + 1]/my:YearlyTotals/my:YearlyTotal
Here I'm trying to reference the [count(preceding-sibling::*) + 1] index of the repeating section, which my understanding is the first occurence of the YearlySpendingPlan repeating section.
Unfortunately, I'm not getting this validation to work.
Thanks for the help!!!
- JF