roeya
Posts: 181
|
| Posted: 01/18/2005, 7:25 AM |
|
I have a record form that has many fields, depending on some condition I want to hide / show parts of the record form.
The record itself is in an includable page.
I tried following the example in the help - Hiding a Record Form Control, but the only thing It does is hiding the relevant part regardless of what I do in the before show of the record/page
I use the latest version (2.3.2.24)
Is there anyone that did such a thing (hiding part of a record form)?
_________________
http://www.infoneto.com/ |
 |
 |
mrachow
Posts: 509
|
| Posted: 01/18/2005, 8:32 AM |
|
Are you hiding on the included page itself or from the embracing page.
When from embracing page is the page name of the included page the first item of your control references?
_________________
Best regards,
Michael |
 |
 |
roeya
Posts: 181
|
| Posted: 01/19/2005, 7:52 AM |
|
Quote mrachow:
Are you hiding on the included page itself or from the embracing page.
I am not trying to just hide a specific control (This I already know in both the incluedable and the embracing page) I want to hide all the relevant line - e.g.
Say I have the following record form:
Hobbies ________
Age ________
[Add] [Update]
Now accordig to some rule I want to display all the form like above or
part of it:
Hobbies ________
[Add] [Update]
I followed the sample and in the HTML I added the remark fields for line
(<!-- BEGIN TextBox Filter --> and <!-- END TextBox Filter --> before the <tr> and after the </tr>)
And It did hide the line but I could not do anything to show it even though I followed the example !
Hope this describe the problem better
_________________
http://www.infoneto.com/ |
 |
 |
Tony
|
| Posted: 01/21/2005, 6:07 AM |
|
Maybe you can use this:
Plase a Labels between the <tr> or <td> data tags that you want to hide.
In the before show event according to the rule set the values of that labels to hidden
Tony
|
|
|
 |
matheus
Posts: 386
|
| Posted: 01/21/2005, 8:10 AM |
|
The problem with label hidden are that validate from field still work. And sometimes cannot use label hidden.
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
 |
 |
roeya
Posts: 181
|
| Posted: 01/22/2005, 12:50 AM |
|
Guys, thanks for the help
I found the mistake:
It seems the example (Hiding a Record Form Control) only works when you try to hide one field. The name of the field in the manually added remarks (<!-- BEGIN TextBox Filter --> and <!-- END TextBox Filter --> )should be the same as the control name (Filter and so is the type - TextBox) . I tried to hide several fields at once. so it did not worked.
As I use perl I checked the source code and this is how I found it out (If I have read the documentation more closely I would have seen it...).
Roey
_________________
http://www.infoneto.com/ |
 |
 |
Nicole
Posts: 586
|
| Posted: 01/25/2005, 2:28 AM |
|
Hello,
You’re right, the name in HTML comments should match a field name.
But you can enclose additional HTML you want to hide into comments.
BTW, please keep in mind that when page is includable one the code used to access its controls or connections is a bit different from a code of normal pages. Namely the form’s name and connection object name should be predefined with the includable control name. By default it is the same as includable page name.
_________________
Regards,
Nicole |
 |
 |
prabhakar bharti
|
| Posted: 02/19/2005, 4:38 AM |
|
i want to use show or hide textbox in a asp form according their usage.
anybody can help me.
thanks.
|
|
|
 |