|
From: Margy L. Y. <Ma...@uu...> - 2008-08-22 12:38:36
|
I'm having trouble setting a checkbox -- it ought to be simple, but I
don't seem to be able to get the value right.
The form contains this field:
<input type="checkbox"
name="directory" title="Include me in congregation directory"
checked="checked" id="field_directory" />
The SimpleTest test contains this:
$this->setFieldByName('directory', 'on');
But the test failed to check the checkbox.
Is 'on' not the right value to use? I've tried true, 1, -1, 'checked',
'selected', you name it!
Thanks in advance for any help!
Margy Levine Young, Systems Analyst
UUA Information Technology Staff Group
my...@uu..., 802-989-3371
"We need not think alike to love alike." -- David Ferenc
|