Input Condition ID Element

Hello,

I’m trying to implement auto complete in “input” element. I followed this tutorial -Building an Auto-Complete Search Feature on Bubble.io - YouTube
it worked perfect off the bat.

I’m trying to put more logic in to my auto completion.
I wanted to make the “ID Attribute” value dynamic by using conditions.
So when I use conditions for the “input” element as following - the auto complete is not working.
condition 1 → when get data(nav) from page url is “abc” then ID attribute = list1
condition2 → when get data(nav) from page url is “xyz” then ID attribute = list2

the autocomplete is working only if I hardcode the vallue in the actual place (screenshot attached)"
Screenshot 2023-01-28 at 09.44.35

Not too sure what you’re actually trying to accomplish here. You’re setting an input field’s ID to a list of text?

input feild’s ID is just text which should be updated based on condition, just like conditions mentioned above. it is not a list in this case.

This topic was automatically closed after 70 days. New replies are no longer allowed.