Please HELP! Code to show a repeater based on content from a dropdown

Hello! I have a pretty simple problem (I think) that I’m trying to solve with a few lines of code.

I am trying to get a repeater to display when a dropdown menu’s value is changed.

The dropdown and repeater are already linked to a database, all I want to do is when the page loads, the repeater is not shown, and when the dropdown field is changed from its default setting to any other input, the repeater is then displayed.

Hopefully it’s something easy to do and explain. Please help!

$w.onReady(()=>{
	$w('#myDropdownIDhere').onChange(()=>{
		$w('#myRepeaterIDhere').show()
	})
})
2 Likes

Awesome thankyou!

Do not forget to like it, if you really liked it :wink:

1 Like

Whats the code for refreshing a page once a button is clicked?

@scott_197 I did not see a —> "like":grin:

2 Likes

@russian-dima Likes everywhere now

@scott_197 :hugs::sunglasses:

Whats the code for refreshing a page once a button is clicked?
Although you should open a new post, for new issues, we won’t do it.

Here try this one…
https://www.wix.com/velo/forum/community-discussion/page-auto-refresh

Surely you will find more examples, when you will use the searchfunction :wink: