Form – isSuccess and onSuccess

Notice: This thread is very old.
birkof
Member | 15
+
0
-

What is the difference between isSuccess and onSuccess, when i work with form?

HosipLan
Moderator | 4668
+
0
-

isSuccess() is a method, that you can call and it will tell you, if the form was submitted and successfully validated. As you can see in the API reference.

onSuccess is an event, that is based on Nette\Object's event system.

birkof
Member | 15
+
0
-

thx :-)