top of page
Crumpled Fabric

1

Multiple Database Field Search

Click URL to copy

Feb 19, 2022

1 min read

WIX Ideas

Tags: Repeater Dataset Filter WIX Data Velo by WIX Fieldkey multiple field search

Hi there ๐ŸŽ‰In this tutorial you will finally be able to add a Multiple Database Field Search in your WIX website. It is commonly known for one to search by a specific field alone using searchbar, but most of the times, your visitors might want to search everything (fields) from your database collection.


This tutorial finally breaks the barrier and allows you to setup a perfectly functioning searchbar that searches multiple field contents.


ELEMENTS NEED



IDs TO REPLACE


HOW TO REPLACE IDs IN CODE


  • Click on "CTRL + F" to find an ID within the code

Find & Replace Dialog
Find & Replace Dialog

  • Type in the ID you are looking for (EX., "searchInputID")

  • Then copy and paste your original text input ID from the properties panel into the "Replace" field of the find & replace dialog.



Final Find & Replace should look like this
Final Find & Replace should look like this

FIELD KEYS TO REPLACE

  • fieldkey1

  • fieldkey2



๐Ÿ“บ WATCH THE VIDEO

COPY CODE BELOW ๐Ÿ‘‡๐Ÿฝ


Code



Leave a comment (0)

Thanks for leaving a comment๐ŸŽ‰

kaan

kaan

Jun 4, 2023

wishlist and rating system

hello sir I try today 2 hours but not working if you want I pay money can you do this 2 ( wishlist and rating star) system please I send to you invaid

Reply

Admin

Waqas

Waqas

Apr 16, 2023

Triggered Email Backend

Hi mate please can you send email by backend

Reply

Walter Odibi

Walter Odibi

Admin

Hi Waqas, there isn't a backend code for this tutorial. The emails will be sent from the client-side.

Ghan

Ghan

Dec 29, 2022

Great Tutorial

Hi !

First of all, I want to thank you for your great tutorials, they helped us a lot with the coding.
But I still need your help, if you don't mind. I have based on Save Calculated Field using Wix Data Hooks Codes, to code my form . but the problem is I don't know why the code only reads the computation for "week2" computation and not the "weeks"

here is the code

I also did a separate column in the dataset where the chosen datas for both fields will be placed.

$w.onReady (() => {
$w("#Person").onChange(() => {
$w("#weeks").onChange(() => {
$w("#week2").onChange(() => {
let person = Number($w("#Person").value);
let weeks = Number($w("#weeks").value);
let week2 = Number($w("#week2").value);


$w("#totalLabel").show();

$w("#totalLabel").text = `"${String(weeks * Number(person))}ํŽ˜์†Œ"`; //DESIGN YOUR MESSAGE
$w("#totalLabel").text = `"${String(week2 * Number(person))}ํŽ˜์†Œ"`; //DESIGN YOUR MESSAGE

});
});
});

});

Reply

Walter Odibi

Walter Odibi

Admin

Hi there, thanks for your comment. I see why this is a problem. The onChange() function seems wrong in combination.

To combine onChangeFunctions use this method

$w("#Person, #weeks, #weeks2").onChange(() => {

//code here

});

Walter

Walter

Aug 8, 2022

More Details? Watch video

Hi, you can click here to watch the video https://www.youtube.com/watch?v=9bx7-nBeZ5c

Reply

Walter Odibi

Walter Odibi

Admin

Walter

Walter

Jul 11, 2022

For you

Reply

Walter Odibi

Walter Odibi

Admin

Walter Odibi

Walter Odibi

Apr 18, 2022

Awesome Feature

This tutorial shows you how to display views on your Wix repeater.

๐Ÿ“บWATCH VIDEO HERE https://www.youtube.com/watch?v=Iz7SdaCSdXg

Reply

Walter Odibi

Walter Odibi

Admin

Walter Odibi

Walter Odibi

Apr 18, 2022

Amazing tutorial

This amazing tutorial will show you how to a comment section to your WIX dynamic page.

๐Ÿ“บWATCH VIDEO HERE https://www.youtube.com/watch?v=f8-vJQFNZ_c

Reply

Walter Odibi

Walter Odibi

Admin

Walter Odibi

Walter Odibi

Apr 10, 2022

Great Feature๐ŸŽ‰

This amazing tutorial will show you how to add a visitor view counter to your WIX dynamic page.

๐ŸšฉMORE TUTORIALS https://www.wixgenius.com/wix-tutorials

Reply

Walter Odibi

Walter Odibi

Admin

RELATED TUTORIALS ๐Ÿš€

Reload Your Wix Site After User Logs In

Reload Your Wix Site After User Logs In

Reload the page after your site users logs into your website

bottom of page