This project has moved and is read-only. For the latest updates, please go here.

Using SPDisplayRelatedInfo with input field

May 21, 2012 at 8:41 AM


Thanks a lot for this library, it's really awesome ! I just need a few help to get my input field working.

My problem :

SPDisplayRelatedInfo doesn't work with my input field, but it's working well with a classical dropdown list. The code is exactly the same, but for the input, the completefunc is called only one time, at the loading of the page but for the dropdown, the complete func is called each time a value is filled.

For information, I have the name of the relatedColumns, but the data isn't loading...

My code :

$().SPServices.SPDisplayRelatedInfo ({       
			columnName: "Montant", 
			relatedList: "SQL_opp",
			relatedListColumn: "Document_NO",
			relatedColumns: ["DESCRIPTION", "Phase"],
			displayFormat: "table",
			headerCSSClass: "ms-vh2",
			rowCSSClass: "ms-vb",
			numChars: 0,
			completefunc: function() {
			alert("function input ok");
			debug: true

Do you have any idea why it's not working for my input ?

May 22, 2012 at 4:00 AM

What version of jQuery and SPServices are you using?


May 22, 2012 at 7:01 AM

I am using jQuery 1.7 and .SPServices-0.7.1a.

I have made some tests, and when I click on the dropdown, showRelated function in SPServices is called but not for the input




May 22, 2012 at 12:51 PM


I'll need to take a look at this. I don't recall testing the input variant in a while.


Dec 23, 2016 at 2:29 PM
Edited Dec 23, 2016 at 2:29 PM
Hi M. and Jordan,
It's been a while, but I have the exact same problem: working fine with a dropdown, not working with a text input field (completefunc gets called only on page load).
Any chance you found out what's wrong?
Hope to hear from you, many thanks,

(SP 2010, Jquery 1.12.2, SPServices 2014.02)