Hello
I would like to filter the Dropdownlist based on a column in the initial list. The Columns in List have this Format.
ID Title Websites
1 Text-1 all
2 Text-2 aaa,yyy
3 Text-3 yyy,xxx
4 Text-4 bbb
This code works but does not show all entries.
function (term, page) {
if (!term || term.length == 0) {
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$filter=startswith(Websites,'all') or startswith(Websites,'yyy')&$orderby=Title&$top=25";
}
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$orderby={LookupField}&$filter=startswith({LookupField}, '" + encodeURIComponent(term) + "')&$top=10";
}
The Function 'substringof' or 'contains' view an error
Can someone help me)
Tom