cancel
Showing results for 
Search instead for 
Did you mean: 
themos
Nintex Newbie

Retrieve absolute URL/List Name from Lookup field using jQuery

Jump to solution

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?

0 Kudos
Reply
1 Reply
Highlighted
themos
Nintex Newbie

Re: Retrieve absolute URL/List Name from Lookup field using jQuery

Jump to solution

OK got it:

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

var listID = PreviousList.val();

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

0 Kudos
Reply