1
0
-1

I want to implement a button that will:

  1. Validate the page, and if not valid, display the normal sequential page validation error messages
  2. If valid, navigate to the next page and then launch a dialog

 

// Validate Page, and if valid, then ... 
	Form.$Pages.move(true)
	$timeout(1000).then(function() {
	    Form.showDialog("contactDialog") 
	})

 

 

CommentAdd your comment...

1 answer

  1.  
    2
    1
    0

    Hi Sacha, try this. Form.$Pages.move returns a promise which resolves if the page has changed.

     Form.$Pages.move(true).then(function(){
    	$timeout(1000).then(function() {
            Form.showDialog("contactDialog")
        })
     });
        
      CommentAdd your comment...