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

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
ramanjjilunaidu
Posts: 22
Joined: Tue Sep 05, 2017

22 Sep 2017

Hi All,

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

Thanks & Regards,
Ram

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

22 Sep 2017

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.
Cheers

ramanjjilunaidu
Posts: 22
Joined: Tue Sep 05, 2017

22 Sep 2017

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.

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

22 Sep 2017

Add HTML element like this to your form:
Html.jpg
Html.jpg (35.08 KiB) Viewed 1670 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 1670 times
Cheers

ramanjjilunaidu
Posts: 22
Joined: Tue Sep 05, 2017

22 Sep 2017

Thank you so much Nikita, it was very help ful

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests