I have multiple input boxes that I want to hide/unhide based on a selection from user.
I can achieve this by having a separate dependentObservable for each input an
Taking the idea from @Arxisos even further, I came up with this.
self.showField = function (fieldName) { return ko.dependentObservable(function () { return this.selectedType() ? IsFeatureVisible(this, fieldName) : false; }, this)(); };