Quantcast
Viewing all articles
Browse latest Browse all 17529

How to put a submit button on every Question - by: maxrandolph

I see that the next button saves the answers but I was hoping for a button I could add to the end of each group page that would do this and also I guess put that token's associated usesleft to 0 so that a submission is final. The user could not then go back and alter answers.

After thinking about it for a bit and tinkering with javascript within a boilerplate question, I think maybe the best way to do this is have a button within a boilerplate that redirects to an external link that confirms submission and then updates the limesurvey database under the usesleft column.

I guess thinking about it now, that should work, but I guess I was curious of whether there was an internal way of doing this.

Also I've noticed that having an html <button> within a question seems to trigger an event that takes the user to the previous question page, regardless of content. Simply clicking a button with any time of onclick attribute seems to trigger this event.

EDIT:

Just realized this method would only work if I can trigger saving the current page's answers before redirecting to external link. Is there a way to trigger saving the survey answers via javascript?

Thanks.

Viewing all articles
Browse latest Browse all 17529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>