JFormRuleRules: Difference between revisions
From Joomla! Documentation
New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JFormRuleRules}}
===Define... |
No edit summary |
||
| Line 15: | Line 15: | ||
|Method to test if two values are equal. To use this rule, the form XML needs a validate attribute of equals and a field attribute that is equal to the field to test against. | |Method to test if two values are equal. To use this rule, the form XML needs a validate attribute of equals and a field attribute that is equal to the field to test against. | ||
|} | |} | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.form.rules.rules' );</source> | <source lang="php">jimport( 'joomla.form.rules.rules' );</source> | ||
Revision as of 09:56, 30 March 2010
[Edit Descripton] Template:Description:JFormRuleRules
Defined in
libraries/joomla/form/rules/rules.php
Methods
| Method name | Description |
|---|---|
| test | Method to test if two values are equal. To use this rule, the form XML needs a validate attribute of equals and a field attribute that is equal to the field to test against. |
Importing
jimport( 'joomla.form.rules.rules' );
[Edit See Also] Template:SeeAlso:JFormRuleRules
Examples
<CodeExamplesForm />