Auto submit drag and drop question

I´m using sawtooth 9.3.0

I have a question drag and drop using the library categorization and I´d like to auto submit the question after the user range all the items.

I try to use the function SSI_SubmitMe and document.mainform.submit and both didn´t work. I added a class initalSortable to know where the items start and my code is like this:

//auto submit when rate all brands
if( $('#initialSortable').is(':empty') ) {
//SSI_SubmitMe();
document.mainform.submit();
}

I used similar code in JavaScript verification to not allow the user go to the next question when still have items to range and it works.

What can I do to solve my issue?

Resolved
2 replies