Have an idea?

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

Auto submit for MaxDiff

<script>
function SSI_CustomGraphicalRadiobox() {
    SSI_SubmitMe();
}
</script>

Is there a way to modify the code above so that it allows the respondent to mark the best & worst then proceed?

If you add this code and then mark "best" in the survey, the "error" on the page automatically comes up before you have a chance to mark the worst.
related to an answer for: Auto-submit if answered
asked Jul 22 by Bryan

1 Answer

0 votes
Please use the below code:

<script>
setInterval(function(){
    if(SSI_GetValue("[% QuestionName() %]_b")>=1 && SSI_GetValue("[% QuestionName() %]_w")>=1)
    {
        SSI_SubmitMe();
    }
},100);
</script>
answered Jul 22 by Rahul Mittal Gold (11,135 points)
That worked perfectly!
...