Kaoutar Boulerbah
Kaoutar Boulerbah

Reputation: 65

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

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

Upvotes: 1

Views: 1596

Answers (2)

Morfinismo
Morfinismo

Reputation: 5253

Why not use the onAttach event handler?

You can set your widget onAttach even logic like this:

widget.value = "My default value";

See below: enter image description here

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

Upvotes: 3

New_2_Code
New_2_Code

Reputation: 328

Would something like this help?

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

Upvotes: 0

Related Questions