hi everyone ..
I have database contain 2 field Number and link as shown in the pic down
what's the code when i enter number 1 the site go to Link in the site field in database
because i try many codes and nothing happens :( :(
..
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
What is the url of your web page?
Help please :(
help :(
[@9M RJ] I suggest you spend a little more time reading the articles on datasets. Specifically the API documentation for setFilter. There are several problems that you need to understand. 1. Your click function is called searchButton_click. The button in the Editor seems to be button1. Unless you changed the default binding (which would be button1_click) then this function will not catch the click event. Now you are confusing the wix-data API with the wix-dataset API. To do what you seem to be trying to do you should probably ignore the dataset and focus on using the wix-data API. You have already started to write the query using wixData. So simply finish it off and remove the $(“#dataset1”).setFilter code. You will get the result you need like so: wixData.query(“App”).contains(“site”, SearchValue).find() .then((result) => { if (result.length > 0) { let destination = result.items[0].site; wixLocation.to(destination); } }); I suggest you look up the API functions I have used here and familiarize yourself with what they are doing. Hope this helps you out. Steve
please helppppppp :( :/