Re: Re: DB_Table QuickForm rules
| From: | Mark Wiesemann | Date: | Thu, 20 Apr 2006 13:23:47 +0000 |
| Subject: | Re: Re: DB_Table QuickForm rules | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23769@lists.php.net to get a copy of this message | ||
Hi Charlie,
But unfortunately still no errors. Even if I add the fourth parameter to it (clientside validation) it will not present me with an alert/confirm message. What I'm doing wrong?That's not easy to say without having your full code. Please do a var_dump($G_FORM->_rules); after calling addElement() (in QF) and addRules() (in DB_Table_QF). Do you see the rule in the output? If yes, then it's a rendering problem. If not, it's a DB_Table or DB_Table usage problem.
Thanx for these notes. Always good to have. I saw in the comments in the script. It means if I don't define anything then these default issues will work? Because these are fine! ;)Not sure, what you mean, but: If you only have 'require' => true in your column array, a 'required' QF rule with 'The item %s is required.' as error message will be added (%s is the field name). The message can be customized (localized) via $GLOBALS. Regards, Mark