在应用程序制造商中为下拉列表和广播组选择默认值 [英] select default value for drop down list and radio group in app-maker

查看:47
本文介绍了在应用程序制造商中为下拉列表和广播组选择默认值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我在Google App Maker上构建的应用程序,我被要求为我的下拉列表和广播组设置默认值,这似乎几乎是不可能的,任何想法该怎么做? (默认值而不是Null项,因为在我的情况下不允许使用null项) 下拉列表的值和单选组将其作为查询参数,而不是数据源字段

For the app I'm building on Google App Maker I was asked to set default value for my dropdown list and my radio group , and it seems nearly impossible to do it , any ideas how to do it ? (default value and not Null item because the null item is not allowed in my case ) the value of the dropdown and radio group it a query parameter and not a datasource feild

推荐答案

为什么不使用 onAttach 事件处理程序?

Why not use the onAttach event handler?

您可以将小部件设置为onAttach,甚至是这样的逻辑:

You can set your widget onAttach even logic like this:

widget.value = "My default value";

请参见下文:

我建议您仔细阅读 小部件逻辑文档 了解有关如何实现此类目标的更多信息.希望对您有帮助!

I suggest you to go over the widgets logic documentation to comprehend more about how to achieve this type of things. Hope it helps!

这篇关于在应用程序制造商中为下拉列表和广播组选择默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆