PennController for IBEX › Forums › Support › click button and file attachment
- This topic has 4 replies, 2 voices, and was last updated 1 year, 7 months ago by ElRk.
-
AuthorPosts
-
February 4, 2023 at 11:11 am #9888ElRkParticipant
Hello,
I want to add to my experiment a “Continue” click button between the experimental items but I’ve been stuck.
In the current edition, the participant would see a message like “Press any key to continue” (from the keyboard) but I need to replace it with a mouse click.
I tried the new button command but it doesn’t work, I’m sure that I’m missing something.Also I wanted to confirm if it’s possible or not to attach a file (at the introduction section) that the participants could download.
demo link: https://farm.pcibex.net/r/RLwLNB/
Many thanks in advance-
Eleni- This topic was modified 1 year, 8 months ago by ElRk.
February 8, 2023 at 2:51 pm #9899JeremyKeymasterHello Eleni,
Currently you’re inserting a trial labeled “sep” between your experimental trials, which uses Ibex’s Message controller to display some text, and invites participants to use a keypress since you use
transfer: "keypress"
. You could usetransfer: "click"
instead if you wanted participants to invite the participants to click instead (you can setcontinueMessage
to a custom message if you’d like)You cannot use the PCIbex Farm to host a file that you invite your participants to download. But if you have another hosting solution and have a direct link to that file, then you can use the HTML tag
<a>
, as in<a href="https://link.to.your/file" target="_blank" download="filename.ext">Click here to open/download the file</a>
Jeremy
March 2, 2023 at 9:02 am #9978ElRkParticipantDear Jeremy,
Regarding the HTML tag for the link, I’ve made a lot οf tests but unfortunately I haven’t managed to embed it in the existing code.
Any tip would be really helpful!!March 2, 2023 at 10:06 am #9981JeremyKeymasterHello,
In a PennController trial, you could do that:
newTrial( newText("<a href='https://getsamplefiles.com/download/zip/sample-1.zip' target='_blank'>Click here to download a zip file</a>").print() , newButton("Next").print().wait() )
In an Ibex Message controller, you could do that:
var items = [ ["intro", "Message", {html: "<div>\ <p><h1>hello</h1></p>\ <p><strong>world</strong></p>\ <p><a href='https://getsamplefiles.com/download/zip/sample-1.zip' target='_blank'>Click here to download a zip file</a></p>\ </div>" }] ];
March 3, 2023 at 8:04 am #9982ElRkParticipantThank you so so much for your time and help! Really appreciate it!
-
AuthorPosts
- You must be logged in to reply to this topic.