-
As per the other thread - if the user clicks the checkbox, add a rule to set the other field. If the checkbox defaults to true, you'll have to use other logic for this - maybe a form load rule?
-
Hi, Josée - this is the same form as we were talking about in your other post, I think? When I need to hide a date picker or a people picker (or a picture button, or other controls like that) I put the control in a section and hide the section. I think at this point you've probably got your XPath issues worked out (based on our other ...
-
Does the user check the box? If so, add the rule to the field bound to the checkbox.
-
Is this secondary data you are displaying on your form? If so, I'd use a calculated value that has the text in it - hide if the field is blank.
-
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. :)
-
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 ...
-
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. :)
-
And if review required is always a number: count(my:reviewers[my:reviewRequired = 1])
-
count(my:reviewers[my:reviewRequired = "1"])