Hello, everyone!
Goal: to create a dynamic interface, show elements when it’s needed
So I have a task
- When a separate [value] is chosen in the dropdown
- Show another dropdown down below with another set of values
- So that additional values can be chosen in that interface
For example
- In a dropdown among values I have “KYC needed” value
- This value requires another dropdown to appear down below
- So a user can choose additional values, e.g. “Only ID”
To do that I created such a group. It’s a dropdown 1 structure
- It contains text field as dropdown’s “header”
- Rectangles for dropdown arrow
- Rectangles for dropdown menu items and values
Basically, when you click text field btn or arrow it toggles the dropdown menu visibility. When you click any value in the dropdown menu, this value becomes text field’s btn value and the dropdown menu is hidden again.
The dropdown 2 has the same structure and it’s hidden.
I tried to add an event to show dropdown 2 in a way.
- I added the event to the dropdown 1, to it’s text field btn on Lost Focus event.
- So that when a dropdown looses focus - another dropdown is shown.
- And I thought I could then add another condition when focus lost and the text field value is [needed value] and then show dropdown 2.
- But the thing is that even just on Lost Focus - nothing happens.
Can somebody give some piece on advice why it’s not working? Or how to create such an interface? Thanks
My file
SL-FORUM-16-AUG.rp (61.3 KB)