- Im populating Skill SelectionTag from a collection.
- Im able to view the selectiontag options on the dynamicpage.
- Im able to save/submit selected tag values to the collection.
ISSUE> selectiontag values not read from the collection,even though collection save the previously submitted values
STEP1)
function populateSkill()
{
wixData.query("skillValues")
.limit(10)
// .ge('orderBy',95)
.find()
.then(results => {
var uniqueList = createUniqueList(results.items);
$w("#selectionTags1").options = buildOptions(uniqueList);
})
function createUniqueList(items){
var titlesOnly = items.map(item => item.softSkill);
titlesOnly.sort();
return[...new Set(titlesOnly)];
}
function buildOptions(uniqueList){
var uniqueListFinal = uniqueList.map(curr => { return {label:curr, value:curr}; });
uniqueListFinal.unshift({"label": "Others", "value": "Others"});
return uniqueListFinal;
}
}
STEP2
STEP3)
DynamicDataset ( saving selection tag value)
Issue> Options of SelectionTag is not showing on the page
The page has almost 15 - 20 fields, all getting updated and saved correctly except selectionTag.
Any pointer, will be g8tly appreciated
thanx in advance
sneha shah