The dependency set is a superset of sets that operates as a mapping configuration. Each of its sets provides the possible ‘Condition Type’ dependent answers for each ‘Condition’ depended on answer.
In this case you’d have three “Condition Type” obs, each with different answer sets, and you’d use use the “when” tag to hide/show them based on the Condition obs.
I agree that having a more elegant way to do this would be an improvement, though not sure of the priority as there’s a way to do this now.
Thanks @mogoodrich. Well I don’t think the <when/> solution is inelegant at all! I just should better read the existing docs in the first place.
Do you know if that scales well? Obviously my example was oversimplified. There’s not just two conditions to choose from but about thirty, each of them with their specific set of types. And there’s more dependent obs whose possible answers vary based on the choice made for ‘Condition Type’ this time.
I think we’ve only used it for relatively simple use cases @mksd so haven’t tested scaling… however, it really is just JavaScript so I don’t think it will be too much of an issue?