I have created an external list and in the new form I have a few input controls. Some of them are required fields but are not indicated as such on page. So I am trying to check if the input is empty and show a message that they need to fill it in. But the problem is that once the button is clicked it immediately sends the user the list. So, how can I cancel the click event if the fields are empty?


    var descText = $('#Description_$TextField').val();

        $('#Description_$TextField').append('<p>Please enter a description</p>');
        return false;

1 Answer 1


What you are looking for is called PreSaveAction(). This function allows to override behavior for a Save button. See here for more info:



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.