我已经尝试使用多种方法来切换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"
}
]
}
1条答案
按热度按时间lsmepo6l1#
我不认为这是目前可能的,这是一个多年来一直要求的功能。