Drop Shadow

Custom warnings

You can use the plug-in to display your own warnings using the formWarning() method. For example:

$myForm->formWarning("Please don’t do that!");

If you want your warning to have a title, give that as a second option:

$myForm->formWarning("Please don’t do that!", "Special notices");

Queue warnings

By default, the form plug-in will display warnings as soon as you use the verify() method or as soon as you use the formWarning() method. If you need warnings to wait until later, tell the plug-in to queue using queueWarnings():


Later, you can display all accumulated warnings using displayWarnings():