Auto fill if there is only 1 item a mapped value list

Can i auto fill a select tool if there is only 1 item in the mapped value data source list?

I have a select tool where the mapped values change based on another select tool. Some mapped values only have 1 option and i would like this to auto populate if there is only 1 item on the list. I don't want to default to always select the 1st option on the list.

Interesting little but of UX sugar, I like!

Put this as your Select's Default Value:

{{select1.data.length === 1 ? select1.data[0] : null}}

Here's a screencap.

1 Like

Nice one! :smiley: thank you sir!