Millisecond Forums

Moving to next surveypage by pressing keyboard key

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

By kulajw - 12/16/2016

Hi All,

There is a attribute 'nextbutton label' in element called <survey page> this attribute specify a button which moves me to next survey page.

But I would like to know if I can change input device on survey page from mouse to keyboard key e.g I would like to go next when pressing spacebar not by clicking any specific button on a screen.

Thank you in advance for any help with this issues.

Best regards
By Dave - 12/16/2016

kulajw - Friday, December 16, 2016
Hi All,

There is a attribute 'nextbutton label' in element called <survey page> this attribute specify a button which moves me to next survey page.

But I would like to know if I can change input device on survey page from mouse to keyboard key e.g I would like to go next when pressing spacebar not by clicking any specific button on a screen.

Thank you in advance for any help with this issues.

Best regards

No, it is not possible to navigate / advance surveypages by pressing the spacebar. What you can do is press TAB until the next button is highlighted and then press ENTER to advance.
By kulajw - 12/16/2016

Dave - Friday, December 16, 2016
kulajw - Friday, December 16, 2016
Hi All,

There is a attribute 'nextbutton label' in element called <survey page> this attribute specify a button which moves me to next survey page.

But I would like to know if I can change input device on survey page from mouse to keyboard key e.g I would like to go next when pressing spacebar not by clicking any specific button on a screen.

Thank you in advance for any help with this issues.

Best regards

No, it is not possible to navigate / advance surveypages by pressing the spacebar. What you can do is press TAB until the next button is highlighted and then press ENTER to advance.


Thank You Dave ;)

I intend to use survey page with text box as a place when participant should type some text and then by pressing spacebar he/she might check if this text is a correct answer.

So if it is not possible with survey page, the only idea I have is creating a bunch of trials related to letters sancodes and then present letters on a screen during typing on keyboards. Something similar to this:
https://www.millisecond.com/forums/FindPost18571.aspx

But is there any easiest way to allow participants to input some texts, present this text on a screen and then check if this text fulfil some conditions - but not using mouse in this process?

Best 


By Dave - 12/18/2016

kulajw - Saturday, December 17, 2016
Dave - Friday, December 16, 2016
kulajw - Friday, December 16, 2016
Hi All,

There is a attribute 'nextbutton label' in element called <survey page> this attribute specify a button which moves me to next survey page.

But I would like to know if I can change input device on survey page from mouse to keyboard key e.g I would like to go next when pressing spacebar not by clicking any specific button on a screen.

Thank you in advance for any help with this issues.

Best regards

No, it is not possible to navigate / advance surveypages by pressing the spacebar. What you can do is press TAB until the next button is highlighted and then press ENTER to advance.


Thank You Dave ;)

I intend to use survey page with text box as a place when participant should type some text and then by pressing spacebar he/she might check if this text is a correct answer.

So if it is not possible with survey page, the only idea I have is creating a bunch of trials related to letters sancodes and then present letters on a screen during typing on keyboards. Something similar to this:
https://www.millisecond.com/forums/FindPost18571.aspx

But is there any easiest way to allow participants to input some texts, present this text on a screen and then check if this text fulfil some conditions - but not using mouse in this process?

Best 



You may want to consider using <openended> trials instead of a series of regular <trial> elements (the scancode approach you outlined) or a <textbox> / <surveypage> combination. While you still can't use the SPACEBAR to submit responses in <openended>, they can be configured such that responses can be submitted by pressing ENTER. See the REMARKS section of https://www.millisecond.com/support/docs/v4/html/language/elements/openended.htm , particularly this:

"The respondent can advance past this trial by hitting ENTER if openended is single line expecting keyboard input, and Ctrl+ENTER if it's multiline or set to mouse input. The default input for openended is mouse input, which enables the respondent to advance by clicking the openended element's button."

Also, you can place constraints on the input by using the /mask attribute: https://www.millisecond.com/support/docs/v4/html/language/attributes/mask.htm

Note that you are not limited to the built-in constraints (alphabetic, alphanumeric, etc.), but you can create your own, more complex ones by specifying a regular expression in /mask. See e.g. https://www.millisecond.com/forums/FindPost5979.aspx or https://www.millisecond.com/forums/FindPost19095.aspx for a few simple examples. General tutorials on writing regular expressions can be found online, e.g. here: https://regexone.com/

For checking the response's correctness, you can use the <openended>'s /iscorrectresponse attribute.
By kulajw - 12/18/2016

Dave - Sunday, December 18, 2016
kulajw - Saturday, December 17, 2016
Dave - Friday, December 16, 2016
kulajw - Friday, December 16, 2016
Hi All,

There is a attribute 'nextbutton label' in element called <survey page> this attribute specify a button which moves me to next survey page.

But I would like to know if I can change input device on survey page from mouse to keyboard key e.g I would like to go next when pressing spacebar not by clicking any specific button on a screen.

Thank you in advance for any help with this issues.

Best regards

No, it is not possible to navigate / advance surveypages by pressing the spacebar. What you can do is press TAB until the next button is highlighted and then press ENTER to advance.


Thank You Dave ;)

I intend to use survey page with text box as a place when participant should type some text and then by pressing spacebar he/she might check if this text is a correct answer.

So if it is not possible with survey page, the only idea I have is creating a bunch of trials related to letters sancodes and then present letters on a screen during typing on keyboards. Something similar to this:
https://www.millisecond.com/forums/FindPost18571.aspx

But is there any easiest way to allow participants to input some texts, present this text on a screen and then check if this text fulfil some conditions - but not using mouse in this process?

Best 



You may want to consider using <openended> trials instead of a series of regular <trial> elements (the scancode approach you outlined) or a <textbox> / <surveypage> combination. While you still can't use the SPACEBAR to submit responses in <openended>, they can be configured such that responses can be submitted by pressing ENTER. See the REMARKS section of https://www.millisecond.com/support/docs/v4/html/language/elements/openended.htm , particularly this:

"The respondent can advance past this trial by hitting ENTER if openended is single line expecting keyboard input, and Ctrl+ENTER if it's multiline or set to mouse input. The default input for openended is mouse input, which enables the respondent to advance by clicking the openended element's button."

Also, you can place constraints on the input by using the /mask attribute: https://www.millisecond.com/support/docs/v4/html/language/attributes/mask.htm

Note that you are not limited to the built-in constraints (alphabetic, alphanumeric, etc.), but you can create your own, more complex ones by specifying a regular expression in /mask. See e.g. https://www.millisecond.com/forums/FindPost5979.aspx or https://www.millisecond.com/forums/FindPost19095.aspx for a few simple examples. General tutorials on writing regular expressions can be found online, e.g. here: https://regexone.com/

For checking the response's correctness, you can use the <openended>'s /iscorrectresponse attribute.

Thank you Dave :)

I have not known that <openended> element can be advanced by pressing enter, so <openended> is an option for me.

Thank you for your time and advice