Millisecond Forums

Quit button for Web script?

https://forums.millisecond.com/Topic10479.aspx

By claw - 5/15/2013

1. Is it possible to create a quit button for an online script?


2. If they quit (using ctrl-Q or the button), will they still be directed to my dedicated end page?


Thanks!!

By Dave - 5/15/2013

1. Is it possible to create a quit button for an online script?


Yes. Any clickable element along with the script.abort() function will do.


2. If they quit (using ctrl-Q or the button), will they still be directed to my dedicated end page?


If you mean your finish page as specified in the web script wizard, yes. That page is not part of the script, thus will not be skipped. Anything *in* the script, however, will be skipped.

By EvaMaria - 9/3/2014

Hi Dave,

I'm a new Inquisit user and have some questions on the same topic.

You said, it's possible to create a quit button for an online script using the script.abort() function.
When I search on this function, I can only find answers like "Please see the documentation on this function"... but I cannot find this documentation.
Can you tell me where this documentation is? :) Thanks :)

And is it possible, to create a quit button on every page of my online script? I was not sure, if your answer referred to that.
If a participant wants to abort the Inquisit task via this button (at any time of the Inquisit file), how can I forward this participant to
my online survey? I know, that I can forward participants to my online survey at the end of the Inquisit task using this web script wizard,
but I would like to forward them to my survey at any time - even, if they aborted the Inquisit task.

Many thanks for your answer and your help.
Eva


Any clickable element along with the script.abort() function will do. - See more at: http://www.millisecond.com/forums/Post.aspx?TopicID=10479&PageIndex=1&Task=PostTopicReply&ParentID=10479#sthash.Ew8fq2IE.dpuf
By Dave - 9/3/2014

The abort() function is documented in the language reference for the <script> element ( https://www.millisecond.com/support/docs/v4/html/language/elements/script.htm ), see the functions section. This will lead you to https://www.millisecond.com/support/docs/v4/html/language/functions/abort.htm

Whether it's possible to have a "button" on every "page" depends on the specifics of your script. The question cannot be answered in the abstract.