Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

PreSave with page reload

$
0
0

Hi All,

I have a presave function, once the item is saved I need to reload the page.

function PreSaveAction() {
    var txtTitle = $(":input[title='Title']").val();
    if (txtTitle == "") {
        alert("Please enter a title");
        return false;
    } else {
        return true;
        RefreshPage(SP.UI.DialogResult.OK);
    }


}


Thanks in Advance, Jiniv Thakkar


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>