Help: how to show new colors of options after searching(if an click event happened before searching) in dynamic component extension

Help in Dynamic component


Hello, Kodular.

This app is a quiz app based on Google Sheets.
I searched by question name, but there’s a problem I couldn’t solve. After the user clicks an option, the options turn to a new color.. that’s working ok! . The problem is that after searching for the question, the colors of the options return to their original state, as if the user hadn’t answered the question! How can I solve this problem? I know it reloads the dynamic component, but how do you suggest a solution to this problem so that the colors still update if the user answer a specific question without reloading basic colors?

Please Help me !

if anyone can help
@Still-learning

Hi dear,
instead of deleting the components that don’t match the filter, couldn’t you just hide them?

yes but how i can hide specific dynamic va by index in event doesn’t contain blocks like when any dynamic click !

try this

not working all vertical cards dissapeared (hidden) after searching :smiling_face_with_tear:

maybe i have to get by index or something like this or the problem when i get the global data directly

im sorry, put this to true
:man_facepalming:

1 Like

Great, thank you :heart_eyes:. I didn’t expect it to be easy. You’re a professional. I always struggle with local variables and was looking for a quick solution because I wanted the project ready this week.
can you explain what is the role of adding vertical arrangement visible = false .. before if block.
Thank you so much.

Okay, I get it.
First, we Hidden all the VAs, then we show only the VAs that contain the text in the text box.

:partying_face:

Yes, exactly, more specifically, in each loop we hide the verticalArrangement corresponding to number (va1, va2, va3, …), and if the text in the textbox is contained in its title, we make it visible.

1 Like

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