Hi, im having a problem.
I have an array that is used to construct checkboxes with this following format:
[0]
['desc'] => "Guard: John Mister"
['chk'] => "0"
['hide'] => "0"
[1]
['desc]' => "Checkpoint: Administration"
['chk'] => "1"
['hide'] => "1"
[...]
|
The meaning of this is: 'desc' is the description of the checkbox. 'chk' is to inform
if the checkbox is checked or not. 'hide' is to inform if the checkbox is show or not in the form.
The HTML side is this:
<input type="checkbox" value="[blkChkSpecificRegister.desc;block=input;when [blkChkSpecificRegister.hide]=0]" name="SpecificRegister[]" [blkChkSpecificRegister.chk; if [val]=1; then 'checked="checked"'; else '']>[blkChkSpecificRegister.desc;if [blkChkSpecificRegister.desc]!=''; then '[blkChkSpecificRegister.desc]<br>';]</input>
|
The PHP side is this:
$TBS->MergeBlock('blkChkSpecificRegister',$this->sessionArray);
|
The desc and chk option works fine. But Im having problem with the 'hide'... I tested a lot but
dont get any solution. I believe that the problem is in the HTML side, specially in the hide sentence.
Please, can anyone help me?
Thanks
Flavio