CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Conditional Form Name?

Print topic Send  topic

Author Message
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


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.