I know there are a few questions out there already, but I can't seem to get any of them to work. Please help.
$(document).ready(function() {
$().SPServices({
operation: "GetListItems",
async: false,
listName: "Question Archive / Archive des questions",
CAMLViewFields: "<ViewFields><FieldRef Name='My Question / Ma questions' /><FieldRef Name='Answer' /></ViewFields>",
completefunc: function (xData, Status) {
$(xData.responseXML).find("z\\:row, row").each(function() {
var liHtml = "<li>" + $(this).attr("ows_My Question / Ma questions") + $(this).attr("ows_Answer") + "</li>";
$("#tasksUL").append(liHtml);
});
}
});
});
So I'm having issues with the space and / characters for this column name. I know the
listName: "Question Archive / Archive des questions",
and other code works because, the ows_Answer shows up. I've tried changing the spaces and forwardslash to different variations of unicode and javascript character code, but that column just doesn't show up. It returns an "undefined" value.
$(this).attr("ows_My_x0020_Question_x0020__x002f__x0020_Ma_x0020_questions")
didn't work. Unfortunately, I cannot change the column name.