Count answer in single grid question

I want to count a answer in a single grid question and give  a condition.

Example:

I have a single grid question.

Surveyor can select answer 1 maximum 2 times.

0

Comments

1 comment
  • Official comment

    Hi Shishir,

    This was also opened as a support request by you and was answered.

    I am adding the solution to that here as well:

    You can use the function dblNumOfTopicsContains(Question, AnswerIndex) to count the times a specific answer was mentioned in a single choice grid question.

    For example you can write according to your condition: dblNumOfTopicsContains(CurrQues, 1) > 2 as the validation rule condition that checks that the first answer was not selected in more than 2 topics.

    Regards,

    Daniel

     

Please sign in to leave a comment.

Didn't find what you were looking for?

New post