Re: dynamic behavior on form elements

From: Date: Wed, 13 Jul 2005 16:57:41 +0000
Subject: Re: dynamic behavior on form elements
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19974@lists.php.net to get a copy of this message
On 7/13/05, PHPDiscuss - PHP Newsgroups and mailing lists <hernan@postmaster.co.uk> wrote: > Anybody knows how I can disable/set static content (not from a DB) to an > input text box when an option is selected in a selection list? I'm using > the PageController pattern with FormBuilder. > > It seems to me that I could addRule() in the postGenerateForm() of my DO > subclass, and then may be to set up a javascript to do that, I'm not sure > about this, any help or example code? > best regards > I'm not sure a rule is what you want here. Are these elements both in the same form/page? If so, you could use some simple javascript to do this. -- Justin Patrin

« previous php.pear.general (#19974) next »