I'm attempting to setup SPGetQueryString to populate a single line of text field. I'm confident in the jquery and spservices references being correct since I did the alert test as well as being able to run this script to populate a drop down menu field and it worked. I am using SharePoint 2013 in IE and Chrome.
Here is the drop code that worked:
Thanks in advance for any help.
Here is the drop code that worked:
$(document).ready(function() {
var queryStringVals = $().SPServices.SPGetQueryString();
var supplierID = queryStringVals["SupplierID"];
$().SPServices.SPComplexToSimpleDropdown({
columnName: "SupplierID",
});
//like :contains but only selects exact matches
$.expr[':'].textEquals = function(a, i, m) {
return $(a).text().match("^" + m[3] + "$");
};
var selectedSupplierID = $("option:textEquals('" + supplierID + "')").val();
$("select[title=SupplierID]").val(selectedSupplierID);
$("select[title=SupplierID]").change();
});
Here is the code I am attempting:$(document).ready(function() {
var queryStringVals = $().SPServices.SPGetQueryString();
var Simple = queryStringVals["Simple"];
});
Debug mode doesn't show me any issues. Thanks in advance for any help.