List Picker Auto Selection

Hello,
I got a listpicker and a boolen variabe (default false) in my app.
If variable is false, user picks item from listpicker elements. No problem in here.
What I want is if variable is true, I want my program to auto select a listpicker element and evaluate afterpicking block. Is it possible?


component_event
(Note: Do not care about afterpicking block's error.)

I tried something like in photos but although I set listpicker.selection = an element, it did not evaluate afterpicking block.
Thanks in advance.

Probably easier to emulate the afterpicking event, e.g. do whatever you want to do, in your if/else blocks, having made a selection from the listpicker elements.

image

1 Like

After you set the selection, you can call the "AfterPicking" event manually. You can use this extension.

Blocks:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.