What is the correct syntax to use smart tags in Form Builder 'hidden' field?
Posted: Thu Jan 31, 2008 2:31 pm
This is driving me a bit crazy....
Am using Form Builder to create a form (logically), and I want the form (that is sent to the site administrator) to have a reference to the page (and/or contents of the page) that the user sends the form from.
This would 'appear' to be possible using the 'Hidden' field in Form Builder - which allows smarty's to be processed.
I hence input the smarty value - typically {$title} - which shows up nicely in the body of the page - but when the Form Builder part is processed it gives this error:
string(127) "Smarty error: [in evaluated template line 1]: syntax error: unrecognized tag: $title (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in evaluated template line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
Implying I have the incorrect syntax. ('Process smarty tags within field' is selected)
So how should it be done????
Or how else can something similar be achieved - ideally using Form Builder which has the functionality I'm looking for.
Hope someone knows the answer...
Am using Form Builder to create a form (logically), and I want the form (that is sent to the site administrator) to have a reference to the page (and/or contents of the page) that the user sends the form from.
This would 'appear' to be possible using the 'Hidden' field in Form Builder - which allows smarty's to be processed.
I hence input the smarty value - typically {$title} - which shows up nicely in the body of the page - but when the Form Builder part is processed it gives this error:
string(127) "Smarty error: [in evaluated template line 1]: syntax error: unrecognized tag: $title (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in evaluated template line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
Implying I have the incorrect syntax. ('Process smarty tags within field' is selected)
So how should it be done????
Or how else can something similar be achieved - ideally using Form Builder which has the functionality I'm looking for.
Hope someone knows the answer...