json 基于输入选项设置值切换自适应卡中容器的可见性

yhqotfr8  于 2023-05-02  发布在  其他
关注(0)|答案(1)|浏览(97)

我已经尝试使用多种方法来切换date_selection_container的可见性,但都不起作用。我想切换的可见性,如果日期明智的休假被选中,用户应该看到两个输入日期框

isVisible": "=if(equals(triggerOutputs['feature_choice']['value'], 'Date Wise Leave'), true, false)"

conditions": [
            {
                "type": "Equals",
                "left": "${feature_choice.value}",
                "right": "Date Wise Leave"
            }
        ]

"isVisible": "=contains(triggerOutputs['feature_choice']['value'], 'Date Wise Leave')"

密码

{
            "type": "Input.ChoiceSet",
            "id": "feature_choice",
            "label": "Which type of leave information you needed?",
            "placeholder": "Please Select the feature type",
            "value": "Monthly Leave",
            "choices": [
                {
                    "title": "Monthly Leave",
                    "value": "Monthly Leave"
                },
                {
                    "title": "Date Wise Leave",
                    "value": "Date Wise Leave"
                },
                {
                    "title": "Recent 5 Leave",
                    "value": "Recent 5 Leave"
                }
            ],
            "isRequired": true,
            "wrap": true,
            "separator": true
        },
        {
            "type": "Container",
            "id": "date_selection_container",
            "padding": "None",
            "when": "${feature_choice.value == 'Date Wise Leave'}",
            "items": [
                {
                    "type": "Input.Date",
                    "label": "From",
                    "id": "start_date_input"
                },
                {
                    "type": "Input.Date",
                    "label": "To",
                    "id": "end_date_input",
                    "value": "2023-04-27"
                }
            ]
        }
lsmepo6l

lsmepo6l1#

我不认为这是目前可能的,这是一个多年来一直要求的功能。

相关问题