infopathinfopath2010

how to dynamically show number of filled Fields in infopath


I Have a info-path with lots of fields and I want user to know the status of fields completed under each tab(View). How dynamically I can show the number of blank fields still remains as a continuous Update


Solution

    1. For each text field, create a corresponding integer field and give it a default value of 1.
    2. Create rules on the text field that update the integer field depending on whether the text field is blank or not blank -- when the text field is not blank, set the integer field to 0. When the text field is blank, set the integer field to 1.
    3. Create a calculated value that sums the values of the integer fields. This will tell you how many fields are remaining to be completed.

    To make the answer readable I have assumed text fields but the same principle could be applied to other fields.

    You can see a simple example here: https://dl.dropboxusercontent.com/u/9278601/fields-remaining.xsn