-
Do you get any errors when you publish? Is your library set to open the form in the browser (Library settings > advanced)
-
InfoPath freaks all of us out sometimes. :)
So - I've seen this bug before, generally if the schema changes. I check my formulas that are like this and have "current()" in them when I add a field to the main data source....
-
So - I added rows to my sample and then changed the data connection to include more items and was able to reproduce something similar. So yes, it appears that InfoPath forms services is pickier about this than the filler - sorry this isn't going to work for you in your browser form!
If you decide to use code (or you can use qRules) here is ...
-
You get the error on form open? Are there any other rules running off the field with the default value? I'll check my sample in our environment later today and see if the same issue reproduces for me.
-
Hmmmmm.... the second bit makes me think you figured it out? The filter is the square brackets and the stuff inside... :)
-
current() is an XPath function, yes. It refers to the current node. I selected the checkbox to edit XPath in the formula and manually added the filter of [count(current()/../preceding-sibling::my:group2) + 1]
So, select the field that has the value you want from your secondary data source, then click the checkbox to edit the XPath, and manually ...
-
So - do you get an error message when you add code to the form and try to publish to the library? I'm guessing the sandbox service may not be running on your form. Browser forms can have code and be published either directly to the library if the sandbox service is running, or can be admin approved if not.
Usually I use a count of ...
-
Maybe instead of using this as a default, you could add a rule to the repeating group to set the field to the preceding sibling. Then when the row is inserted, the field gets set.... But if turning off refresh works for you, that's great too. :)
-
Under the Page Design tab on the ribbon, find the Views section. Select the Properties button - then select the print settings tab. That's where you can select a print view.
-
Hi! Do you have an idea of how many rows you'll need in the form? That is, do you know the max number of rows you'll have in your SharePoint list?
Unless this is a list form, by the way, you can use code in browser forms. The object model has some limitations and some differences from client, but code is allowed.
At any rate, under the ...