PROBLEM WITH DEPENDENCIES (.prb)

Moderator: GiD Team

Post Reply
c.souto
Posts: 8
Joined: Thu Oct 17, 2019 5:11 pm

PROBLEM WITH DEPENDENCIES (.prb)

Post 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
User avatar
escolano
Posts: 1918
Joined: Sun Sep 05, 1982 10:51 pm

Re: PROBLEM WITH DEPENDENCIES (.prb)

Post 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
c.souto
Posts: 8
Joined: Thu Oct 17, 2019 5:11 pm

Re: PROBLEM WITH DEPENDENCIES (.prb)

Post 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.
Post Reply