- Posts: 115
- Thank you received: 4
Ask the community, share ideas, and connect with other LimeSurvey users!
$(".submit").hide(); $("#imageload").load(function() { window.setTimeout(function() { $('#movenextbtn').click(); }, 5000) });
$(".submit").hide(); //hide the native submit button $('#question2897').after('<button id="newSubmit"class="submit" type="button">Submit</button>'); //add in a custom button $('#question2897').before('<div id="redirect_popup">Thank you for the positive feedback.<br>Please take a moment to write us a short online review. It helps our search engine rankings - and it is good karma!</div>'); $("#newSubmit").click(function() { $('div#redirect_popup').css({'display':''}); window.setTimeout(function() { $("#movesubmitbtn").click(); }, 5000) });
{if(A2>=20,'https://plus.google.com/+CompanyName/about', 'https://www.CompanyName.com/')} so based on the score of question names A2, the redirect happens without additional JavaScript.