Page 1 of 1

Can we Show confirm dialogue (message) on Edit?

PostPosted: Mon Jan 16, 2012 5:26 am
by muzafar
Greetings,

can anyone please tell me, that how can I show confirm message i.e. "Are you sure you want to save the changes?" on edit form? I want to show this message when the user click on the save button in the edit form.

Kindly lead me.

Your help will be greatly appreciated.

Thanks.

Re: Can we Show confirm dialogue (message) on Edit?

PostPosted: Mon Jan 16, 2012 11:46 am
by shannah
You could just add this via javascript. In any block or slot on the form page you could insert a snippet like:
Code: Select all
jQuery('#new_Course_record_form').submit(function(){
     if ( confirm('Are you sure you want to do this?')){
        return true;
     } else {
         return false;
     }
});