Chris Seymour
|
| Posted: 04/30/2002, 6:44 AM |
|
Hi All,
Is it possible to set the title of a form programatically?
Thanks.
Chris
|
|
|
 |
Daniel Gaudreault
|
| Posted: 04/30/2002, 9:13 AM |
|
Yes you an, it's a little tricky depending on how fancy you need to get.
If the value that you want to display is already in the form itself (i.e.
first name or company name) simply put in the field name (click on the
properties for the field and copy the field name) in curly brackets such as
{first_name}.
If you need to get fancy, then do the following:
create the label to replace. i.e. Incident #:{incident_id}
in the before show event add the following code ( in PHP with templates):
$tpl->set_var("incident_id", tohtml( <<what ever string or variable>>));
$tpl->parse("<<FORMNAME>>", false);
Best of luck,
Dan
"Chris Seymour" <cseymour@seyware.com> wrote in message
news:920060A47cseymourseywarecom@66.180.229.147...
> Hi All,
> Is it possible to set the title of a form programatically?
>
> Thanks.
>
> Chris
|
|
|
 |
|