Page 1 of 1

Use Item ID in javaScript

Posted: 05 Aug 2019
by huona
Hi,
how can I get the item id to use them in JavaScript?

Re: Use Item ID in javaScript

Posted: 06 Aug 2019
by mnikitina
Hello Huona!


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

Thank you!

Re: Use Item ID in javaScript

Posted: 06 Aug 2019
by huona
Hi mnikitina,
I mean the current ID field that every List item have.

Regards huona

Re: Use Item ID in javaScript

Posted: 07 Aug 2019
by mnikitina
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');