Ok, like I said before, you will need one hidden field in each of the question's section with default value "0". The name of these fields must be something like hiddenfield1, hiddenfield2, hiddenfield3, ..., hiddenfield40. In the code I gave you, replace [YourXpath] by the xPath of one of the fields, without the number (ex : ...