Closed accforgithubtest closed 2 weeks ago
Hi! I think what you are looking for is the selected option of the json object in options.
'selected', $key::int = 3
Yes, selected in json options is what I was after. Works perfectly as expected. Thanks for the help.
I am unsure whether this is a bug report or feature request.
I am trying to get the
select
component in aform
to pre-select an option based on a url paramhttps://....create_activity.sql?activityKey=3
Specifying the value
3 as value
works, however$activityKey as value
doesn't work.Is there a way for me to get the pre-select to work based on the url param $activityKey ?