用一个下拉框控制控件可见不可见,怎么实现当控件不可见时这个控件不可用,可见时默认公式的值,
JS控制单元格控件是否可用/可见 https://help.fanruan.com/finereport/doc-view-4055.html
控件值决定其它控件是否可用.rar
可以参考这个:
var cx1=this.options.form.getWidgetByName("cx").getValue(); //获取下拉框值
var s1=this.options.form.getWidgetByName("L地区"); //获取需要隐藏的控件
if(cx1=='1'){
s1.setVisible(true); //隐藏 setEnable ture可用 false不可用
}else {
s1.setVisible(false);
}