| Justin Patrin 2005-05-26, 8:59 pm |
| On 5/20/05, Stowe, Nola <NStowe@thettgroup.com> wrote:
> Sorry for the double post, my bad, learning to use the newsgroup software=
..
>=20
> I used the advcheckbox and that worked fine. Don't know what the problem =
was
> with checkbox.
>=20
> Could you give me an example of using the setChecked method please?
$el =3D& $form->addElement('checkbox', 'name');
$el->setChecked(true);
>=20
> Thanks Justin!
>=20
> -----Original Message-----
> From: Justin Patrin [mailto:papercrane@gmail.com]
> Sent: Thursday, May 19, 2005 11:05 PM
> To: Nola
> Cc: pear-general@lists.php.net
> Subject: Re: [PEAR] QuickForm: setting checkbox when editing
>=20
> On 5/18/05, Nola <nola@devasap.com> wrote:
he[color=darkred]
>=20
> setDefaults should work fine. If it doesn't, try using setChecked on the
> checkbox.
>=20
--=20
Justin Patrin
|