Have an idea?

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

Auto-submit Next button with v9.4.0


We are used to use this Javascript to hide the "next buton" for a while but it seems to not run with the new version (9.4.0). Has anything changed in the code ? (for instance "_sys_next_button") ? Thanks a lot for your help!
asked Sep 5, 2017 by Thomas
What code are you using?  If you are using these:


you shouldn't need "sys_next_button" anywhere.
I use this code:
<script type="text/javascript">
function disableNext ( )
  document.mainform.sys_next_button.disabled = true;
window.onload = disableNext;

<script type="text/javascript">
var link = document.getElementById("link1");
link.onclick = function enableNextButton ()
      document.mainform.sys_next_button.disabled = false;

1 Answer

0 votes
Best answer
I don't think you need either of those "sys_next_button" parts.  The function disableNext just needs this content:


The function enableNext just needs this content:

answered Sep 5, 2017 by Zachary Platinum Sawtooth Software, Inc. (70,100 points)