Try our conversational search powered by Generative AI!

How to conditionally show field in criterion?



I have created a criterion to be used in visitor groups. The criterion has three properies: Key (input field), Condition (dropdown), and Value (input field).

The three properties are declared like this in my model (inheriting from CriterionModelBase):

        public string Key { get; set; }

        [Required, DojoWidget(SelectionFactoryType = typeof(EnumSelectionFactory), AdditionalOptions = "{ selectOnClick: true }")]
        public RequestHeaderValueCondition Condition { get; set; }

        public string Value { get; set; }

Key is always to be shown, but suppose I only want to show Value, depending on what is selected in the Condition-dropdown. Is this possible?

Nov 24, 2021 11:31
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.