0

On the page after clicking "submit" form is submitted. But I forbade controller ctrlPersonalData form submission (return false)

Please help me cancel the sending of the form after clicking "submit"

Dropout
  • 13,653
  • 10
  • 56
  • 109
  • If it is a secure form, you may want to look at a PHP solution as some browser extensions allow HTML and JavaScript editing – samrap Dec 06 '13 at 07:44

2 Answers2

0

This is a simple HTML trick but should work for you:

<form onsubmit="return false;">
...
</form>

Please take this as a starting point and not as a copy-paste solution.

Vivek Jain
  • 3,811
  • 6
  • 30
  • 47
0

Remove the action="#" attribute from the form. Also in AngularJS you dont make a form post you make ajax calls with model data.

Chandermani
  • 42,589
  • 12
  • 85
  • 88