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

Hi,

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 by Thomas
What code are you using?  If you are using these:

$('#next_button').hide();
$('#next_button').show();


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>

<script type="text/javascript">
var link = document.getElementById("link1");
link.onclick = function enableNextButton ()
{
      $("div.submit_div").slideUp(00).delay(30000).fadeIn(1000);
      document.mainform.sys_next_button.disabled = false;
      $("#videotext").hide(0).delay(30000).show(0);
}
</script>

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:

$('.submit_div').hide();


The function enableNext just needs this content:

$('.submit_div').show();
$("#videotext").show();
answered Sep 5 by Zachary Platinum Sawtooth Software, Inc. (63,900 points)
...