Displaying undesired custom lists

May 23, 2014 at 3:20 PM
I'm not great at JavaScript, but I followed the directions and I had two custom lists display on the "select teacher" section. After some looking around, I finally found the filter in the source code for the aspx file:

// get all lists for showing all teachers JS 5/23/14 this is where you can filter out unwanted custom lists
function getTeachers(){
    webURL: myListURL,
    completefunc: function(xData, Status) {
            //for each list: get the title, type, and id
            listType = $(this).attr("BaseType");
            listID = $(this).attr("ID");
            listTitle = $(this).attr("Title");
            listDesc = $(this).attr("Description");
            niceID = listID.split("{")[1].split("}")[0];
            if(listType == 0) {
                if((listTitle.indexOf("MicroFeed") != -1) || (listTitle.indexOf("Composed Looks") != -1)) {
                } else {
This is around line 120. As you can see, I had MicroFeed and Composed Looks displaying in the "select teacher" section, so this code adjustment filtered these custom lists out.

Hope this saves someone some time trying with a similar issue.