Can we Show confirm dialogue (message) on Edit?

A place for users and developers of the Xataface to discuss and receive support.

Can we Show confirm dialogue (message) on Edit?

Postby muzafar » Mon Jan 16, 2012 5:26 am

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.
muzafar
 
Posts: 44
Joined: Mon Nov 28, 2011 9:25 pm

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

Postby shannah » Mon Jan 16, 2012 11:46 am

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;
     }
});
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 17 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved