I have custom list in which there are two mandatory fields, and I want to ask the user if he wants to again enter the new item after one item is created. I searched over the internet and found this link which triggers the click event of the save button. I placed the contnet editor web part in the NewForm.aspx
and wrote the code as below:
<script src="/sites/zzz/Style%20Library/jquery.SPServices-0.7.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('input[value=Save]').click(function() {
confirm('Do you want to enter the another record?');
});
});
</script>
But I want to trigger the function after the validations are fired and the item is saved to the list.
I have applied JSLink to one field in the NewForm also, can there be anything done using JSLink?
How do I accomplish this?