Adding up a row must not exceed 100. | XM Community
Solved

Adding up a row must not exceed 100.

  • 16 January 2020
  • 3 replies
  • 81 views

Userlevel 2
Badge +2
Hi there,

I am trying the following:
I have four statements (rows) and two columns in which the respondents are supposed to allocate a share. The sum of each row shall not exceed 100, but it should be possible that it stays below 100.

So far, I only figured out that I can set a "Must total 100" in constant sum questions, but this is not really what I am looking for, as it shall be possible for the participants to allocate less than 100.

Am I overlooking a question type or validation that could solve this?

!
icon

Best answer by TomG 17 January 2020, 14:58

View original

3 replies

You could do it using custom javascript validation
Userlevel 2
Badge +2
Thanks for your response! I was afraid that it must be done via JavaScript, and unfortunately , all the coding that I am using in my survey stems from this board, as I have never learned how to code.

Do you know how this could be done, @ysm1nz ? Or maybe someone else?

Thanks a lot!
Userlevel 7
Badge +27
@walli,

To avoid JS, add an 'Other' column that will be the difference between the first two columns and 100.

Leave a Reply