Printable Version
 Updates

 Documentation

 Support & Training

 Community
  Online Forum
  Newsgroups
How can I hide a form/component on a page programmatically?

Products:   
Areas: ASP, Perl 

In CodeCharge you can hide forms by using the following code in the Form's Open Event:

ASP:
  SetVar "Form<form_name>",""
  exit sub;


PHP:
  $tpl->set_var("Form<form_name>","");
  return;


In CodeCharge Studio you can hide a Form or Grid component by adding the following custom code to "After Initialize" event of the page:

ASP:
  <form_name>.Visible = false

PHP:
  global $<form_name>;
  $<form_name> -> Visible = false;


Where <form_name> is the name of the form.


Viewed 42604 times.   Last updated: 7/22/2002 5:17:51 AM