Page 1 of 1

How to show list item ID in display and edit forms designed by spforms designer

Posted: 22 Sep 2017
by ramanjjilunaidu
Hi All,

Is there a way to show default List Item ID in display and edit forms designed by spforms designer.

Thanks & Regards,
Ram

Re: How to show list item ID in display and edit forms designed by spforms designer

Posted: 22 Sep 2017
by Nikita Kurguzov
Hello, Ram!
Simply place HTML-control onto your form, switch its CDATA property to False and put the following code into the Content property:

Code: Select all

<xsl:value-of select="@ID" />

This will show up as an ID number on your Edit and Display form, though it wouldn't work for the New Form as the item hasn't been created yet.

Re: How to show list item ID in display and edit forms designed by spforms designer

Posted: 22 Sep 2017
by ramanjjilunaidu
Thank you so much Nikita, can you bit elaborate please. How to switch its CDATA property to False and where can i find content property.

Re: How to show list item ID in display and edit forms designed by spforms designer

Posted: 22 Sep 2017
by Nikita Kurguzov
Add HTML element like this to your form:
Html.jpg
Html.jpg (35.08 KiB) Viewed 1672 times
Copy the code inside of it and set CDATA to False, so it looks like this:
CDATA.png
CDATA.png (6.98 KiB) Viewed 1672 times

Re: How to show list item ID in display and edit forms designed by spforms designer

Posted: 22 Sep 2017
by ramanjjilunaidu
Thank you so much Nikita, it was very help ful