Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: Not able to pass List Title as a query string from one list to another

I think the problem could be several things:

Here you are setting the value of lastID to the query string value for "varname". If you have "?varname=xxx" on the query string that's right, but I'm guessing it's actually "?itemID=xxx"
var queryStringVals = $().SPServices.SPGetQueryString();
var lastID = queryStringVals["varname"];
alert(lastID);
This line means that the query will be for the string"lastID":
"<FieldRef Name='Quiz' /><Value Type='Text'>lastID</Value>" +
It should be:
"<FieldRef Name='Quiz' /><Value Type='Text'>" + lastID + "</Value>" +
Hopefully one of these changes will do it.

M.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>