Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Constant Sum question layout

Hello,

I'm using a constant sum question with 3 options.
Each option has a descriptive text string and a picture of the product right after.

1) Is there anyway to have the sum question box, the text and the picture aligned ?
2) Is there anyway to have either lines of separations or different colors for each option?

Thank you in advance
asked Nov 2 by luclepage2017 (185 points)
Not sure about the alignment issue, but wanted to point out that you can also use a grid question and set it to column based instead of row and you can choose constant sum as the question type.  Then tick the box to show a total.  This will give you the every other coloring you are asking about.

1 Answer

0 votes
Adding this code to your constant sum may resolve your first request:

<script>
$(document).ready(function(){
    $('#[% QuestionName() %]_div .inner_table > tbody > tr > td > table > tbody > tr').each(function(){
        $(this).append('<td></td>');
        $(this).children('td:last-child').append($(this).find('img'));
    });
})
</script>


I am unsure what you have in mind for your second request.  Could you elaborate?
answered Nov 2 by Zachary Platinum Sawtooth Software, Inc. (63,900 points)
...