Stream: questionnaire
Topic: type array of string
DevGeek (Jul 25 2020 at 18:58):
Hi , I'am creating a Questionnaire and adding items in this form at the moment :
{
"linkId" : "25",
"text" : "Question display",
"type" : "",
"readOnly" : false
}
In this question, the response is an array of string, how can I declare that ?
Thanks
Lloyd McKenzie (Jul 25 2020 at 19:10):
type would be string, repeat = true
DevGeek (Jul 26 2020 at 10:27):
@Lloyd McKenzie and how that will be stored ?
DevGeek (Jul 26 2020 at 12:10):
@Lloyd McKenzie Normally it will something like this in the QuestionnaireResponse
"answer": [
{
"valueString": "test"
}
]
How it will store multiple strings ?
Mareike Przysucha (Jul 26 2020 at 12:41):
Hi there. answer
can appear multiple times. I guess it would be something like that:
"answer" : [
{ "valueString": "answer_1"} ,
{ "valueString": "answer_2"} ,
...
{ "valueString": "answer_n"}
]
But please correct me if I'm wrong.
Lloyd McKenzie (Jul 26 2020 at 14:03):
@Mareike Przysucha is correct.
Mareike Przysucha (Jul 26 2020 at 14:04):
@Lloyd McKenzie Thanks for the confirmation.
Last updated: Apr 12 2022 at 19:14 UTC