Hi guys I want to connect minimum and maximum variables with two textbox. Later I'll use between function for filter. Please help!
top of page
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.
bottom of page
You will find the right filter here....
https://www.wix.com/velo/reference/wix-data/wixdatafilter
Between-Filter-example:
import wixData from 'wix-data'; wixData.query("myCollection") .between("age", 25, 65) .find() .then( (results) => { if(results.items.length > 0) { let items = results.items; let firstItem = items[0]; let totalCount = results.totalCount; let pageSize = results.pageSize; let currentPage = results.currentPage; let totalPages = results.totalPages; let hasNext = results.hasNext(); let hasPrev = results.hasPrev(); let length = results.length; let query = results.query; } else { } }) .catch( (error) => { let errorMsg = error.message; let code = error.code; });
Sorry for my bad English. :( I'm trying to get user inputs as max and min values for between function. I want to filter databases.
Dont understand your question :S
You can get the value of a textInput box with
let yourvalue = $w("#textinput").value;
or you can set a variable for textboxes
var textboxvalue = "My text";
$w("#textbox").text = textboxvalue;