Monday, November 30, 2009

How to Remove {generate-id()} from Customized Edit forms in SharePoint

ISSUE:
I am customizing the EditForm.aspx file and have added an HTML Table Tag. Moreover, when I set the "ID" attribute for the HTML TABLE Tag and save the page, SharePoint keeps on appending the following {generate-id()} . How can I get rid of this, since I am not able to call HTML by ID due to this stuff that SharePoint appends?

SOLUTION:
SharePoint appends the following: {generate-id()} onto HTML element within the body of the form, whose "ID" attribute has been set. Moreover when the HTML element is rendered onto the page, its ID attribute would contain a 6 character string appended.
ID0EAAA" value="23">

1. You must create a dummy parameter

2. Append the dummy parameter to the ID attribute

Stepwise Solution Available @-

http://ankushg.spaces.live.com/blog/cns!12D87E23D9058350!182.entry

Always Search @ Fukat Ka Gyan: Hub For Quick Solutions