Checkbox Filter Using Search Button > Appear on Lightbox with Repeater

But some issues appear:

  • The symptoms name doesn’t load into the checkbox list

Yes, that’s right → i did not pay attention onto the ID of your NAME-Field inside the SYMPTOM-DATABASE.
But normaly you should be able to find this little bug on your own…
If you would use some more console-logs → it would be much easier for you to → DEBUG <— your own code.

See here an EXAMPLE: …

function loadSymptoms(DB){
	wixData.query(DB).find().then(results=>{
 	let symptomsDropdownOptions=[];
	symptomsDropdownOptions.push(...results.items.map(symptoms=>{
	return{_id:symptoms._id,value:symptoms.tifunction loadSymptoms(DB){
    wixData.query(DB).find()
    .then(results=>{console.log("RESULTS: ", results);
        let symptomsDropdownOptions=[];
        symptomsDropdownOptions.push(
            ...results.items.map(symptoms=>{
            return{_id:symptoms._id,value:symptoms.name,label:symptoms.name};}
            )
        );
        console.log("OPTIONS: ", symptomsDropdownOptions);
    return symptomsDropdownOptions;});
}tle,label:symptoms.title};
})
);
	return symptomsDropdownOptions;});
}

Before:

symptoms.title

After:

symptoms.name

Since you have the data inside of the → NAME-field <— and not inside the —> TITLE-field <---- .

Also implement some console.log → console.log("RESULTS: ", results);
To be able to understand whats happening inside of your own code at which code-position.

The more console.logs you use —> the faster you will be able to solve your issue.