Trying to open a screen with list picker

I created a list. When I click an item on the list, I want it to redirect me to another screen. When i go onto Ai Companion and i click the list it doesn't take me to the screen. If I click the List.Picker again then it will take me. How can I make it work in one try.

Here is my code (I am a beginner):

use the ListPicker.AfterPicking block instead.

And the BeforePicking event to set the elements for the listpicker.

Hi thank for the help. I tried the code but i might have done it wrong because it didn't work. I ended up changing the list into buttons instead. Again, thanks for the help.