You searched for the word(s): 12
-
From where your submit button is now, this should be the formula that you can use to disable submit unless all required reviewers have a person selected:
count(../../my:reviewers/my:*/my:review[my:reviewRequired = 1 and (../my:ppicker/pc:Person/pc:AccountId = "" or not(../my:ppicker/pc:Person/pc:AccountId))]) > 0 ...
-
OOOOOOHHHHHH ! I understand now that I've looked at your form. I'll post back shortly w/ the formula so you don't have to have reviewers be repeating - I misread your original XML. :)
-
Thanks so much for helping.
First, I had to set the reviewers group as Repetitive even though none of them are. It then allowed me to select "Number of". HOWEVER, I just noticed that all my People Pickers are now unbound and cannot be bound properly, Yikes!
count(../../my:reviewers) = ""
I tried ...
-
On the submit button, add a condition for your expression - for the first dropdown, select reviewers and use the drop down to select "number of" - that will give you the XPath for the basic count, if you change the first dropdown to "the expression" - paste that into a reply & I can help you w/ the filters on the ...
-
A simpler example of what I'm trying to accomplish is to Hide the Submit button, if not all the reviewers have been defined.
In English, I'd say: For all the Required reviewers, do we have any blank AccoundIDs under reviewers?
OR
Do we have the same number of non-blank reviewers as there are required reviewers?
Seems simple enough ...
-
Hmm, I'm currently using a Calculated Value control to ensure I can get the correct syntax first, then will move it to when I need it.
The intent is to hide/show another field (capture date field external to the above structure) based on some calculation within the reviewers mode-set.
I tried adding an Action rule to the ...
-
Where is the rule? Select reviewers using the field picker and then manually add the XPath filter. Whether "my:reviewers" is a valid path depends on where the rule / condition / expression is. :)
-
When I do either, it won't save the rule as it tells me:
"my:reviewers/my:reviewRequired" does not point to a valid location path of a field or group.
XPath is: count(my:reviewers[my:reviewRequired = "1"])
I don't know if this is important but reviewRequired is set as Boolean.
-
And if review required is always a number: count(my:reviewers[my:reviewRequired = 1])
-
count(my:reviewers[my:reviewRequired = "1"])