Required fields in form

PennController for IBEX Forums Support Required fields in form

This topic contains 1 reply, has 2 voices, and was last updated by Jeremy Jeremy 3 weeks, 5 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5797
    Avatar
    iasmaa
    Participant

    Hi Jeremy,

    I have added some boxes for the participants to fill out in the welcome page (e.g. Name, age….etc). How can I make those information required? because it appears like I can start the experiment without filling them out.

    Also, how can I make a checkbox for the consent declaration?

    Thank you.

    #5799
    Jeremy
    Jeremy
    Keymaster

    Hi,

    [ I created a new topic for this question, as it does not relate to self-paced reading tasks ]

    How did you add those boxes: as part of an Html document, or as TextInput elements?

    If you are using an Html document, then you need to give the obligatory class to your required elements, as described in the original Ibex documentation. Then you can use the .test.complete command on your Html element.

    If you are using a TextInput element, then you’ll want to use the .test.text command on it to check it’s not empty, e.g.: .test.text(/\w+/)

    Checkboxes have not yet been implemented in PennController, so the simplest solution at this point would be to use an Html document

    Jeremy

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.