Two-level drill-down question where the higher level is automatically selected using embedded data | XM Community
Skip to main content

Dear community,

 

The requirement is to create a two-level drill-down question where the higher level is automatically selected using embedded data that comes as a query string from the anonymous link of the survey, thus only the relevant options at the second level of the question are offered to the participant. A kind of display logic for the second level. 

 

i Would like to have a drilldown question so autocomplete question with SDS instead is not what i’m looking for.

 

Also, there are thousands of different options to set so display logic is not the way to go.

 

Please advise.

 

have a wonderful day,

Dar

 

Hi Dar,

 

Can you please be more descriptive? Based on what I understood, first get the data from the query string, to do that, set the embedded data at the top in the survey flow.

 

Second, use that embedded data as a display logic


Hi,

Drill-down questions are sometimes a bit tedious to use (plus the fact that they can’t be simply edited once published) but here how you could go around this:

Use the Q_PopulateResponse string parameter (see the How do I figure out the JSON formatting for a question? at the bottom of the page, FAQ section, to see the format for a drill-down question).

See the drill-down numeric values section of the support page for instructions on how to retrieve the choices value from the translation file.


Hi ​@vgayraud,

 

Thank you for your responses.

From the support page you have mentioned i have found this:
Drill Down: "QuestionID":{"ChoiceID":"AnswerID","ChoiceID":"AnswerID"}

Drill Down Full Format: "QuestionID":{"ChoiceID":{"Value":"AnswerID"},"ChoiceID":{"Value":"AnswerID"}}

 

i’m trying to find the right parameters and i have come up with this:
"QID39_1":{"QID39_Choice1":"${e://Field/university}"}.

the piped text is because i would like it to be dynamic.

i have tried it and it didn’t work. 

do you have any idea what went wrong?

 

tnx again,

Dar


Hi,

Say you have this in your translation file:

QID43_QuestionText Drill-down
QID43_Choice4 1
QID43_Choice5 2
QID43_Answer1 1
QID43_Answer2 1 ~ 1A
QID43_Answer3 1 ~ 1B
QID43_Answer4 1 ~ 1C
QID43_Answer5 2
QID43_Answer6 2 ~ 2A
QID43_Answer7 2 ~ 2B
QID43_Answer8 2 ~ 2C

 

If you want the first drill-down to be set to 1, you ‘ll append 

?Q_PopulateResponse={"QID43":{"4":"1"}}

If you want it to be set to 2, you’ll append

Q_PopulateResponse={"QID43":{"4":"5"}}