Dependency between survey categories

shill
Mega Sage

I have a survey that has a first question that asks if the user has used a particular application. This question is in its own category.

If the user selects yes, then we need to display a rating category with several likert template questions, but hide these if the user selects no.

In addition, I have another category that deals with questions when they select no.

It appears that I cannot base any dependency on those questions in the second category based on the answer to the question in the first category.

Is there any way I can do this?

If I move the first question into the same category as the likert scales, it messes up the category header and looks awful.

1 ACCEPTED SOLUTION

jessicasnieder
Giga Contributor

Hi guys,

I encountered the same issue and after some investigation I found out that in the dictionary entry of the field depends on an advanced reference qualifier is added. You can open the dictionary entry via the Question table in the backend (see comment from shloke04)

Current reference qualifier:

javascript:'category=' + current.category + '^sys_id!=' + current.sys_id + '^method=assessment^datatypeINchoice,scale,numericscale,template,boolean,checkbox,imagescale,multiplecheckbox'

 

If you remove the part 'category=' + current.category + '^ you can select questions in other categories as well. It also shows questions from other surveys so if anyone can add the script to show only questions in the survey to which this question is related that would be great!!

Anyways, for now my dependency across survey categories issue is solved and I can continue to setup the survey.

Hope this helps 🙂

View solution in original post

11 REPLIES 11

Hello Jessica, 

 

I tried your solution and it works fine.  The only issue I have is if I open this survey with the Survey designer, it breaks my dependency between the questions residing in different categories.  Have you encountered the same and if yes, have you found a way to circumvent that issue?

 

Thanks!

Hi Ronald,

Unfortunately I haven't found a solution for that. Best way to approach is to setup the complete survey in the designer mode and then setup the category dependencies in the backend afterwards.

Cheers,

Jessica