Harry
|
| Posted: 06/01/2002, 5:01 PM |
|
I am trying to Hide controls on a form Labels and Textboxes. I am using ASP 3.0 With Templates and CCS B5. I have tryed the Visible property and cannot seem to make it work users.first_name.visible = False.
Any Ideas anyone.
I do not get any errors just it does not hide.
Thanks
Harry
|
|
|
 |
Brent
|
| Posted: 06/01/2002, 10:02 PM |
|
The help file under "Visible Property" has a couple of examples that might help you.
Brent
|
|
|
 |
Harry
|
| Posted: 06/02/2002, 3:13 AM |
|
I have already tryed using the Examples and nothing worked.
|
|
|
 |
Fotis
|
| Posted: 06/02/2002, 8:59 AM |
|
I have the same problem! Help please
|
|
|
 |
CodeCharge
|
| Posted: 06/02/2002, 2:31 PM |
|
Such functionality was never available in CodeCharge or CodeCharge Studio.
It is planned though.
Konrad
|
|
|
 |
Brent
|
| Posted: 06/02/2002, 3:15 PM |
|
>>Such functionality was never available in CodeCharge or CodeCharge Studio.
>>It is planned though.
I'm hoping once this is implemented, the programmer using code can hide an
entire row from the record form or an entire column from the grid (including
the captions). Otherwise there will be a hole there with no text and the user
will wonder what's missing. This feature could be quite useful to programmers
because then they can custom tailor the form for each user.
Brent
|
|
|
 |
Nicole
|
| Posted: 06/03/2002, 4:27 AM |
|
Hello,
looks like you can show/hide only controls that are surrounded with html comments. Take a look into html and see that you can hide:
forms, buttons, table row with error message, row in grid form.
Please search in docs and here on discussion board for more information. I remember there're several threads about hiding rows on record and Grid forms.
|
|
|
 |
Donald R.
|
| Posted: 06/03/2002, 11:43 AM |
|
This doesn't work in CCS. At least not with ASP/Templates because I've spent great deal of time on this, including giving the support headaches.
Maybe in CC? But in CC you cannot edit HTML...
|
|
|
 |
Nicole
|
| Posted: 06/04/2002, 12:00 AM |
|
Donald,
what exactly you cannot make to work? What have you done? Please provide more details.
Also please refer to the tread: http://www.gotocode.com/disc_viewt.asp?mid=10946&s_topic=show%28&
I hope it could be helpful
|
|
|
 |
Donald R.
|
| Posted: 06/04/2002, 1:37 AM |
|
Thanks Nicole. Good article!
I'm rather trying to hide individual fields on the record form (or anything on the page). I tried adding comments around a control, like:
<!-- BEGIN something -->
<!-- END something -->
Then using VBScript, I could hide/show the block/control with BeforeShow code on the form like:
Dim Something
set Something = Tpl.Block("Record formname").Block("Something")
Something.Visible = True
This appears to work OK, but the Control no longer shows any values, just static HTML... (?)
|
|
|
 |