Brent
|
| Posted: 02/12/2002, 2:26 PM |
|
Ok, this one is eluding me. How can I change the caption of a record field?
This should be easy, right? I'm using PHP with Templates. TIA
|
|
|
 |
Sarah
|
| Posted: 02/12/2002, 5:33 PM |
|
You just type in the caption you would like in the box under caption in the form part of the page, under the section where you add fields.
|
|
|
 |
Brent
|
| Posted: 02/12/2002, 8:45 PM |
|
Sarah,
I meant using code, how do I change the field caption. :)
Brent
|
|
|
 |
Nicole
|
| Posted: 02/13/2002, 5:02 AM |
|
Brent,
while you're using PHP+Templates it is easy. Put the field caption in curl braces, e.g. {priority_field}
Then in BeforeShow event assing real value to it. E.g.:
if (any_condition)
$tpl->set_var("priority_field", "High priority");
else
$tpl->set_var("priority_field", "Low priority");
|
|
|
 |
|