amis icon indicating copy to clipboard operation
amis copied to clipboard

支持表单项之间联动

Open belongwqz opened this issue 5 years ago • 1 comments

是否关联于某个问题吗:

支持表单项之间联动

预期的解决方案:

{
  "type": "form",
  "controls":[
    {"label": "审批", "name": "status", "type": "select", "options": [{"label": "同意", "value": "yes"}, {"label": "同意", "value": "no"}] },
    {"label": "意见", "name": "note", "type": "text", "value": "<% if (status=="yes") {%>同意<%}else{%>不同意<%}%>"}
  ]
}

这样,当选yes的时候,意见自动变为同意,当选no的时候,意见自动变为不同意,可以省去审批人的操作。

其他可接受方案:

请简单描述其他你可以接受的效果...

任何附加信息:

请添加任何可以补充说明上述问题的材料,例如图片或视频等...

belongwqz avatar Apr 30 '21 01:04 belongwqz

查看formula组件

RickCole21 avatar Apr 30 '21 09:04 RickCole21