Page 1 of 1

PROBLEM WITH DEPENDENCIES (.prb)

Posted: Thu Oct 17, 2019 5:21 pm
by c.souto
Hello,

My problem is in the *.prb, I need to create a question that has to depend on two other questions, that is if and only if questions A and B are activated, question C is activated and field C appears in the interface. The problem is that I cannot establish this double dependency. properly and therefore question C is always shown even if one of the other (A or B) is deactivated.

I think with a function if the problem will be resolved but I´m begginer in this lenguaje so I don't know how I can improve a function if in a *.prb or if it's possible.

Thank you very much in advance for your help. :D

Re: PROBLEM WITH DEPENDENCIES (.prb)

Posted: Mon Oct 21, 2019 5:40 pm
by escolano
Dependencies are very limited, I think that this double dependency is not possible
(and maybe for a final user is also confusing)

Reconsider if you can reorder your data and use a single dependency
e.g. the first dependency A could hide or disable a tab (title) where other questions B, C are shown,
and another dependency of B could disable C
To set C first A must enable the tab, and then B set C to enable/disable

Re: PROBLEM WITH DEPENDENCIES (.prb)

Posted: Tue Oct 29, 2019 12:04 am
by c.souto
Thank you for your answer, it was very helpfull. I've done it as you said and I solved the problem.

Best regards.