Solved: Form Name as Dynamic Subject

tomcat8118 09 May, 2011
is it possible to have the Form Name (not field name) appear as the dynamic subject?

Thanks

Tom
GreyHead 09 May, 2011
Hi Tom,

Simplistically you could use a Static Subject and type it in.

To use it in a dynamic box you'd need to put the form name into the form data first with a Custom Code action
<?php
$form->data['form_name'] = $form->form_details->name;
?>
Then use form_name in the Dynamic Subject box.

Bob
normdouglas 19 Jun, 2012
Thank you also for this... I was trying to get a similar code I had for older chrono versions... this one is perfect for V4

Just to be clear here is another example of the code (in case I ever need to find this again)
<?php
$form->data['subject_1'] = 'TEXT THAT YOU WANT'.$form->data['FIELDNAME'].'MORE TEXT'.$form->data['FIELDNAME']; 
?>
This topic is locked and no more replies can be posted.