Vladimiro Paredes
|
| Posted: 12/03/2002, 7:13 AM |
|
I am trying to set some fields (Text boxes and combo boxes) disable if a
certain condition is met in code.
Can anyone help me with this?
|
|
|
 |
Vic
|
| Posted: 12/03/2002, 8:15 AM |
|
Try it:
1.In HTML tabs add template variable category_id_Disabled like
<input class="AquaInput" maxlength="10" {category_id_Disabled}
name="{category_id_Name}" size="10" value="{category_id}">
2. Add action "Custom code" to Event "Before Show" with code like:
global $Tpl;
if (your condition)
$Tpl->SetVar("category_id_Disabled","Disabled");
Vic
"Vladimiro Paredes" <vparedes@exodusgroup.net> wrote in message
news:asihms$dma$1@news.codecharge.com...
> I am trying to set some fields (Text boxes and combo boxes) disable if a
> certain condition is met in code.
>
> Can anyone help me with this?
|
|
|
 |
Vladimiro Paredes
|
| Posted: 12/04/2002, 7:49 AM |
|
Thanks Vic
Is there a similar code using ASP, VB script?
"Vic" <victor.tciba@yessoftware.com> wrote in message
news:asila6$ku8$1@news.codecharge.com...
> Try it:
>
> 1.In HTML tabs add template variable category_id_Disabled like
> <input class="AquaInput" maxlength="10" {category_id_Disabled}
> name="{category_id_Name}" size="10" value="{category_id}">
> 2. Add action "Custom code" to Event "Before Show" with code like:
> global $Tpl;
> if (your condition)
> $Tpl->SetVar("category_id_Disabled","Disabled");
>
> Vic
>
> "Vladimiro Paredes" <vparedes@exodusgroup.net> wrote in message
>news:asihms$dma$1@news.codecharge.com...
> > I am trying to set some fields (Text boxes and combo boxes) disable if a
> > certain condition is met in code.
> >
> > Can anyone help me with this?
>
>
>
|
|
|
 |
Vic
|
| Posted: 12/04/2002, 11:22 PM |
|
Hi Vladimiro,
For ASP try:
If your_condition Then
HTMLTemplate.SetVar "@category_id_Disabled","Disabled"
End if
Vic
"Vladimiro Paredes" <vparedes@exodusgroup.net> wrote in message
news:asl876$kfb$1@news.codecharge.com...
> Thanks Vic
>
> Is there a similar code using ASP, VB script?
|
|
|
 |
|