Added a new option called multiSelect to filter for multiple items.
As of Files Version: V.4.9.1-2025.08.15.00
popup_multi.png
Code: Select all
// Usage Example
// Define your items in the format you requested
var filterItems = [
["-1", "(blank)"],
["0", "None"],
["1", "No Blanks"],
["2", "No Duplicates"],
["3", "No Duplicates/Blanks"]
];
nuAddBrowseFilter('nu5fdb67accbbfa6d').nuSearchablePopup({
title: "Select Validation Types",
items: filterItems,
searchPlaceholder: "Search...",
applyText: "Apply Filter",
cancelText: "Cancel",
multiSelect: true,
clearText: "Clear All",
selectText: "Select All",
checked: [], // or provide pre-selected values like ['0', '1']
onSelected: function(selectedItems) {
console.log('Selected items:', selectedItems);
},
onClear: function() {
console.log('Filter cleared');
}
});
Alternatively, initialise it with
nuSearchableMultiPopup()
, which automatically enables multi-select, so you don’t need to pass the
multiSelect: true,
option.
SQL WHERE example:
Code: Select all
WHERE (
sob_all_label = '#nu5bad6cb375bd72e_filter#'
OR left('#nu5bad6cb375bd72e_filter#', 1) IN ('#', '')
OR LOCATE(sob_all_label, '#nu5bad6cb375bd72e_filter#') > 0
)
You do not have the required permissions to view the files attached to this post.