Put the "Save and Close" Button at the Bottom of a Survey We created a survey in Sharepoint Portal Server 2003 and one of our internal client wants a submit button at the bottom instead of "Save and Close" button at the top menu. Is there a simple way to do this? In order to insert the submit button, I opened the NewForm.aspx from the survey using Front Page 2003 and found I could not insert the button because the survey tool bar and the survey body are an integrated web part. Note: assuming we are deploying a survey on a WSS site because I will change some default views of the survey list on WSS site template. To change SPS areas' survey list template will be similar. Look for the right location of the XML file in the in site template. Step 1: Open Schema.xml for the survey template For WSS: Go to C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\1033\STS\LISTS\VOTING\Schema.xml
For My Site: Go to C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\1033\SPSMSITE\LISTS\VOTING\Schema.xml Similarly, For SPSNEWS template: Go to C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\1033\SPSMSITE\LISTS\VOTING\Schema.xml Schema.xml stores the views of different views of survey web parts. Step 2: Moving the Button Tool Bar the Bottom of EditForm Page The schema.xml stores the form views inside the <Forms> tag, e.g. the forms used by EditPage.aspx is stored in the tag <Form Type="EditForm" Url="EditForm.aspx" WebPartZoneID="Main">
The <Forms> tag has four child tags <ListFormOpening>, <ListFormButtons>,<ListFormBody>, and <ListFormClosing>. <ListFormOpening> stores the related javascript functions; <ListFormButtons> stores the tool bar buttons; <ListFormBody> stores the survey body view; and <ListFormClosing> stores the end content of the survey form. 1. Go to <ListFormButtons>, 2. Skip the <Switch> child tag of <ListFormButtons> , 3. Copy the lines starting the tag of <HTML> and ending with </HTML> tag before the closing tag </ListFormButtons>, 4. Paste right next to the <ListFormClosing> tag Step 3: Moving the Button Tool Bar the Bottom of NewForm Page Locate the tag <Form Type="NewForm" Url="NewForm.aspx" WebPartZoneID="Main"> and then repeat steps 1-4 from the of Step 2 Step 4: Restart IIS Restart the IIS Service Go to the command prompt and type iisreset How to change the Label Text of the "Save and Close" button and "Go back to survey" button? In Schema.xml, look for the "Save and Close" and replace with text of your choice, i.e. "Save and Submit". Similarly, look for the "Go back to survey" and replace with "Cencel" and save Schema.xml file and restart the IIS Service You are all set !!! Write Comment (2 Comments) |