Sharepoint - Listas - Botón para NewForm que vuelve a la misma página

<input name="save1" id="customButton" type="save" value="Guardar" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={LLL}')}" /> <script type="text/javascript"> $(document).ready(function() { var buttonDest = $("#customButton").attr("onclick"); buttonDest = buttonDest.replace("LLL",window.location.href); $("#customButton").attr("onclick",buttonDest); }); </script>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.