Use Item ID in javaScript

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
huona
Posts: 2
Joined: Mon Aug 05, 2019

05 Aug 2019

Hi,
how can I get the item id to use them in JavaScript?

User avatar
mnikitina
Posts: 264
Joined: Wed Jun 05, 2019

06 Aug 2019

Hello Huona!


Could you please clarify which item ID you need to get, Current item, Lookup field, Related record.

Thank you!

huona
Posts: 2
Joined: Mon Aug 05, 2019

06 Aug 2019

Hi mnikitina,
I mean the current ID field that every List item have.

Regards huona

User avatar
mnikitina
Posts: 264
Joined: Wed Jun 05, 2019

07 Aug 2019

Huona,

You can get the current item ID with the code below.

Note that it will work only in Edit and Display views.

Code: Select all

GetUrlKeyValue('ID');

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 25 guests