Hello,
I am using joomla 2.5,
and using Chronoforms_V4_RC3.3 .
Is there a way to put dynamic data in the Header text field ?
(I want to make a form that is a feedback on a tutor, and the form will open after pushing a "feedback" button in a table's record (in a specific site page)
of this specific tutor,
and in the form's header i want it to be "this is a feedback on ___"(=the tutor name)).
sorry for the whole explaination,
thanl you very much,
Liora
I am using joomla 2.5,
and using Chronoforms_V4_RC3.3 .
Is there a way to put dynamic data in the Header text field ?
(I want to make a form that is a feedback on a tutor, and the form will open after pushing a "feedback" button in a table's record (in a specific site page)
of this specific tutor,
and in the form's header i want it to be "this is a feedback on ___"(=the tutor name)).
sorry for the whole explaination,
thanl you very much,
Liora
Hi Liora,
If you identify the tutor in some way in the link that calls the form - for example by including the tutor is as $tid=999 - then you can look up the tutor's details in a Custom Code action in the On Load event
The use {tutor_name} in a Custom or Header element in the Preview window.
Bob
I think that this also answers the question in your email.
If you identify the tutor in some way in the link that calls the form - for example by including the tutor is as $tid=999 - then you can look up the tutor's details in a Custom Code action in the On Load event
<?php
$form->data['tutor_name'] = '';
if ( isset $form->data['tid'] && $form->data['tid'] ) {
$tutor = JFactory::getUser($form->data['tid']);
$form->data['tutor_name'] = $tutor->name;
?>
The use {tutor_name} in a Custom or Header element in the Preview window.
Bob
I think that this also answers the question in your email.
This topic is locked and no more replies can be posted.