PROBLEM WITH DEPENDENCIES (.prb)

Moderator: GiD Team

c.souto
Posts: 2
Joined: Thu Oct 17, 2019 5:11 pm

PROBLEM WITH DEPENDENCIES (.prb)

Postby c.souto » Thu Oct 17, 2019 5:21 pm

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: 1580
Joined: Thu Sep 18, 2014 3:31 pm

Re: PROBLEM WITH DEPENDENCIES (.prb)

Postby escolano » Mon Oct 21, 2019 5:40 pm

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: 2
Joined: Thu Oct 17, 2019 5:11 pm

Re: PROBLEM WITH DEPENDENCIES (.prb)

Postby c.souto » Tue Oct 29, 2019 12:04 am

Thank you for your answer, it was very helpfull. I've done it as you said and I solved the problem.

Best regards.

Return to “Customization”

Who is online

Users browsing this forum: No registered users and 2 guests