Skip to main content

Hey all,

I'm trying to retrieve the absolute URL from a valid Lookup field in a Nintex Form using jQuery.

I was able to get the Site URL using "_spPageContextInfo.webAbsoluteUrl", and I can append the rest (/Lists/____/EditForm.aspx etc),

plus I assume the .val() will return the unique ID of the item.

What I can't find is the List Name... Only reference I found was in outerHTML, with the key "data-list="....

Does anyone know the proper/best way to retrieve it?

OK got it:

var listName = PreviousList.attr('data-list');

var listID = PreviousList.val();

var url = _spPageContextInfo.webAbsoluteUrl + '/Lists/' + listName + '/EditForm.aspx?ID=' + listID;


Reply