top of page
Small Function Library for Wix Code
Page Code
// For full API documentation, including code examples, visit http://wix.to/94BuAAs
import {populateDropdownWithAll, populateDropdownWithFilter} from 'backend/adminService';
$w.onReady(async function () {
//TODO: write your page related code here...
$w("#countryDropdown").options = await populateDropdownWithAll("Countries");
});
export async function countryDropdown_change(event) {
$w("#cityDropdown").options = await populateDropdownWithFilter("Cities", "country", $w("#countryDropdown").value);
$w("#cityDropdown").enable();
}
Code for backend/adminService.jsw
bottom of page