HTML_QuickForm::getValidationScript()

HTML_QuickForm::getValidationScript() – Returns the client side validation script

Synopsis

require_once 'HTML/QuickForm.php';

string HTML_QuickForm::getValidationScript ( void )

Description

Returns JavaScript used to validate the form on client side. Returns an empty string if no rules were added with 'client' modifier.

Throws

throws no exceptions thrown

Note

since 2.0

This function can not be called statically.

Returns the required note (Previous) Accepts a renderer (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.