How to get the ID of the current record

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
MES5464
Posts: 94
Joined: Mon Aug 26, 2013

24 Oct 2013

Say the user has an edit form open.

How do I get the ID of the current record?

User avatar
Clint Lechner
Posts: 5
Joined: Wed Aug 28, 2013

25 Oct 2013

What do you want to do with the ID? One option is getting it via javascript

In Forms Designer, click on the Javascript tab
Type in:

JSRequest.EnsureSetup();

var currentID = JSRequest.QueryString["ID"];

alert(currentID);


What do you want to do with the ID then? There are a few different ways to get the item ID.

MES5464
Posts: 94
Joined: Mon Aug 26, 2013

28 Oct 2013

I plan to query several other lists to display related information in readonly html.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests