limited IDs in survey

14 views
Skip to first unread message

María da Fonseca

unread,
Nov 8, 2020, 1:21:56 PM11/8/20
to ja...@googlegroups.com
Hi Elisa and Kristian,

It was very helpful to read the survey example. In the exp I am coding, want to add a field where the participant writes an ID provided by us. By adding a field like the one you expose in demographics:
                            name: "ID",
                            type: "text",
                            title: "Please enter your ID:",
                            isRequired: true
                        
I would like to restrict the ID within a list of possible IDs to prevent the user writing an ID that is not in the list. I would like to do that without showing the possible IDs to the user, because of that I can't use the type dropdown. Is it possible to limit the possible texts to be filled as ID?

Best,

María

Elisa Filevich

unread,
Nov 8, 2020, 4:15:55 PM11/8/20
to JATOS
Hi María, 

The quick answer is we don't know, you would have to check the docs of the survey library you're using. 
I'm sure that there is a way (you could code things by hand and not let people advance until they input a valid ID) but whether that's already implemented in the library is another question. 

If you're using the survey example, that means that the JavaScript is provided by surveyJS (https://surveyjs.io/). That's the 'frontend' so quite separate from JATOS, which provides the backend. 

Best
Elisa


--
You received this message because you are subscribed to the Google Groups "JATOS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jatos+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jatos/CABHfF7Wa1_EzUFkYtZgFSub4AheCnJVaov94j7xZOUc2JXssJg%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages