Search box that show results on a dynamic page

Hello everyone,
I’m taking my first steps on the corvid code, so I thank, in advance, anyone who can help me.

I state that I have already read the tutorials on what I ask and I have already searched in the various posts of the forum, but without a positive outcome.

I need to create a search button, I managed to make the tutorial work in a table on the same page, but I need it to open up a dynamic page and populate a form I created.

Can you please help me?

Thank you!
Marco

Thanks mrmilenia,
maybe I didn’t explain myself.
The site is developed with wix, the homepage has a search field, a button, the dynamic page is already created and also the form.
I was able to write the code that allows me to query the database and return the result in a table (the classic wix support tutorial), but I would like instead that, clicking on the button, the search loads a dynamic page and populate the fields present in it.
An example: empty homepage search field. I write the last name “pallino”, I click on the search button and the dynamic page opens with populated the forum that abstracts the data from the management and shows me surname “pallino”, name “pinko”, Cell “12345” etc.
Have I been more exhausted like this?
Can you help me?
Thank you

Marco

Hi Marco,
As soon as you create a dynamic page, each one of the items in the database collection will get a dynamic URL field, then, you can put a button for each result item in your results repeater and bind it with a dataset to the dynamic page or if you want a bit more modifying than that, you can use onClick events and using wixLocation.to().

Good Luck!

Hi Lior Wiseman,

I’m still not very familiar with the Corvid code, I limit to look videos and use examples and only to adapt a few lines, so you could better explain how to write what you say because it’s all a bit confusing. I would really appreciate it.

Thank you.

@info60119 Can you explain more what have you already done and what is missing?

@liorwi

Good morning dear Lior Wiseman, and thanks for your interest!

I am still at various attempts.
I can get the wix support examples to work, but I don’t go any further in writing the code.
In practice creating a field and a button with the event that shows me the results in a table works.

I also found a forum post that indicated how to use wixlocation.to inside a table to call a dynamic page, but it didn’t work for me.

I should make sure that by clicking on the search button, I will open a new page with the results in the table and by clicking on an item I will open a customized form with the data loaded.

Example:
looking for “accountant”, a new page opens with the list of accountants.
I choose “Jhon” I open the card with name, surname, mobile phone, address, website etc.