select default value for drop down list and radio group in app-maker

跟風遠走 提交于 2020-01-06 01:37:45

问题


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


回答1:


Why not use the onAttach event handler?

You can set your widget onAttach even logic like this:

widget.value = "My default value";

See below:

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




回答2:


Would something like this help?

The below can be found by going to Data> Datasource> Fields> String Field> Advanced.



来源:https://stackoverflow.com/questions/51383918/select-default-value-for-drop-down-list-and-radio-group-in-app-maker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!