I am attempting to add fields for a subtotal, which has been working on other parts of the form. I have added a new repeating table in, and the xpath function for counting number of nodes works fine if i use it in a formula box on a rules tab attached to something random on the page, but when I try to use the same thing in my js code, it shows 0 no matter how many nodes there are.
count(../pr:order/my:trucost/my:trucostorder/my:tcunitprice)
Like I said, this works fine from inside the form if i attach the function to a text box or something, but when I try to do the same thing in my js code, it returns 0 every time. Is there something different with the xpath when using js as opposed to insde infopath?
Thanks,
Craig