Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I would like to create a custom workflow with an Infopath created form, but the problem is I have a list of about 8 people picker fields that I would like to count, only if it is set (ie: a person's name is there and not blank). That would increment a hidden field, but when I try to set the count() feature and set it to the DisplayName of the people picker field, it increments it regardless of whether the field is set or not.

Does anyone know how to do this?

Thanks!

share|improve this question
add comment

1 Answer 1

Propably I need more information. But are you trying to count the people pickers from outside or inside the form?

One way you can achieve this is by setting a couple of rules (without code) to every people picker. One rule will increment the counter (another InfoPath field) in 1, whenever the value != blank. The other rule will decrement the counter whenever value == blank.

Will this work? you can always have the workflow reading this counter from outside the form and get how many people pickers were filled out.

I hope it helps.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.