I am created custom forms using sharepoint designer on sharepoint server 2010. One of the requirements is to minimize the use of the ribbon so I have it hidden via javascript and I have created a button on my new displayform.aspx . When I click the button in the custom display form it takes me to the custom edit form but none of the values from the item are being passed into the form.
Here is the custom display form
Here is the Custom edit form (without the data from the list item being passed into it - just a description of the field itself)
To get this far I have
- Added a button to a row at the bottom of the table using the SharePoint designer Insert ASP.NET control.
- After that I changed the text that would be displayed on the button to something specific to my uses then right-clicked on the button and selected "Form actions".
- From there I set the button to "Navigate to Page" with settings referenced to the custom EditItem forms url.
I think there is something I need to do at this stage to get the custom display form to show the information from the list item but I am not sure what.
My code for this area looks like this:
<td colspan="99" class="ms-vb" onclick="javascript: {ddwrt:GenFireServerEvent('__redirect={CxEditForm.aspx}')}">
<span ddwrt:amkeyfield="ID" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(@ID))" ddwrt:ammode="view"></span>
</td>
As many of you Code wizards might be able to tell, I am new at this... so any help would be greatly appreciated.