Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Input taken from text input item can't be displayed on form text display item

I am trying to get an input from the participant and then display it on the screen but the variable can't be displayed even if I can see the input correctly in the variable using the print(variable) command.

Is there any way to print the input taken from the participant on the screen?

Comments

  • Hi @ilke_sahin,

    Thanks for reaching out.

    Please avoid duplicating posts in the forum. I'm closing your earlier post to avoid confusion for other users.

    Relating to your question, the text introduced by a participant through form_text_input can be retrieved from the variable you specified in the form's configuration:

    When using code, you can retrive the text using vars.response (OS versions 3 or 4) or response (OS version 4). To display it on screen, you cn simply insert it on a feedback item (not a sketchpad, only the feedback object is drawn in real time; sketchpads are prepared ahead of the sequence running). You can either use [response] (OS versions 3 or 4) or {response} (OS version 4). Could it be that you were trying to display it on a sketchpad instead of a feedback object?

    I attach an example task in OS version 4.

    Hope this helps,

    Fabrice.

    Buy Me A Coffee

  • I was actually trying to display it on a form text display item but using the feedback item solved my problem. Thank you very much.

    I wonder if there is any way display it on a form text display item though.

Sign In or Register to comment.