Filter UI Builder
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 05:45 AM
Hi, I want to insert my values into a pill-type filter in the UI Builder. I tried doing it by simply setting the id and label, but it doesn’t work.
for (var i = 0; i < api.data.get*.results.length; i++) {
var result = api.data.get*.results[i];
// Create a new object for each result
var myObj = {};
myObj.id = result.*.value; // Extract the ID
myObj.value = result.*.displayValue; // Extract the display value
// Push the object into the array
arr.push(myObj);
}
Does anyone know what format I need to use?
0 REPLIES 0