Have an idea?

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

Indent some radio buttons and text

Hello,

Is there any way to indent some radio buttons with text, but not indent all radio buttons with text on the same question?  This is on a Select question.

Thanks,
asked Jan 9 by Bryan
You want some of the radio buttons to appear a bit more to the right than the other radio buttons?
Exactly Zachary.

1 Answer

+1 vote
Try adding this to your select question:

<script>
$(document).ready(function(){
    var indentedItems = [1, 5, 8];
    var indent = '100px';
    indentedItems.forEach(function(item){
        $('#[% QuestionName() %]_' + item).closest('.response_row').css('padding-left', indent);
    });
})
</script>


Update line 3 with the items you want indented.  Update line 4 with the indent you want.
answered Jan 10 by Zachary Platinum Sawtooth Software, Inc. (70,525 points)
This worked great.  Thanks a lot.
...