I added a save button - that save and redirect to a sublist - on a content web editor, but it is giving me an error and it will not save the changes or do any thing. my code is inside .txt file and linked:
<input type="button" name="btnSave" runat="server" value=" Save "
id="saveButton2" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={/Lists/Projects/AllItems.aspx}')}" />
The error I get is:
SCRIPT5007: The value of the property 'GenFireServerEvent' is null or undefined, not a Function object
Any ideas. Thank you