Xtream VIP
Total posts: 129
13 Jul 2012 17:04

Thanx Sergey for nice article about custom templates, but I have a question about form template.

How can I show field by ID in form template?

Last Modified: 02 Mar 2014


Sackgesicht VIP
Total posts: 1,636
13 Jul 2012 17:59

Use this to show an input field by its ID:

<?php echo $this->fields[ID]->result;?>

and this to display the label:

<?php echo $this->fields[ID]->label;?>

where ID is the field ID ...


Sergey
Total posts: 13,748
14 Jul 2012 06:21

Absolutely right example above.

I'll add this to the article. Subscribe to it and you will gen notified.


Xtream VIP
Total posts: 129
14 Jul 2012 08:13

Thanx Sackgesicht for answer!

Powered by Cobalt