Get ID from a lookup field in DispForm.aspx › Forums › General discussion › Get ID from a lookup field in DispForm.aspx This topic contains 1 reply, has 2 voices, and was last updated by Alexander Bautz 3 weeks, 1 day ago. Author Posts August 29, 2019 at 17:30 #26835 Taylor ScottParticipant Hi Alex, When I’m in new or edit, and I want to get the ID of a lookup field I can use $(‘#dffs_FIN option:selected’).val() or $(‘#dffs_FIN select’).val() When it’s in dispform.aspx I can’t use this and getFieldValue(fin) only gives me the lookup value not the ID. Is there a simple way to get the ID that I’m just missing? August 29, 2019 at 19:57 #26837 Alexander BautzKeymaster You can use this snippet to get the ID from a single choice lookup in DispForm: var lookupId = GetUrlKeyValue("ID",false,jQuery("#dffs_LookupProject .ms-formbody a").attr("href")); alert(lookupId); Replace LookupProject with your field internal name. Alexander Author Posts You must be logged in to reply to this topic.