Tuesday, December 27, 2016

How to get the List item Id in javascript while in the display form or edit form

You can do this with javascript and JSRequest.
The ID is passed in via the URL, (ie. 'DispForme.aspx?Id=11'), then use the below code to retrieve the '11'..
JSRequest.EnsureSetup(); 
var itemId = JSRequest.QueryString["ID"];

No comments:

Post a Comment

Clearing Person/Group Values

To clear out or empty the values in person or group columns, how you do it depends on if the column is single-value or multi-value. For ...