Optional attribute presence

Optional attribute presence



We have a mobile app with native select dropdown generated with list widget and select tag. Iterating through list we need selected attribute to be present or not but expression is only works in attribute value not name. We have a workaround using if statement but this triggers scalability warning as list should only have one child. 

What is the recommended solution for such cases? Just ignore warning?

Thank you

Hi Mykola,

I don't quite understand what you mean by "expression is only works in attribute value not name". Can you explain a bit more what you are trying to do? Perhaps some screen shots?

Hi Kilian,

I'm generating a select options via list widget. To select current option it should have the "selected" attributed presented. But I can't have expression in Attributes Property field but only on Value so I can have:

selected = "true" or selected = "false"  and it works for most of attributed but not for selected one as only valid false state is when there is no selected attribute on option element at all.