Hello,
I'm trying to create a dynamic subject with multiple values (in V4). I found some answers at this forum but I can't get it to work. I added a "custom code" event before the "email" event and I added "subject_1" in the "dynamic subject" field. Based on example code on your forum I added in the "custom code":
I tried several different syntaxes because I'm not sure about the quotes but it's sending email with the subject "DEFAULT SUBJECT" so it's obviously not working. I also wonder if the word "Melding" needs to be the name of the form, or that it's just a text.
I would like to get a subject with multiple values, separated by a "at-sign" or a "forward slash". Perhaps strange, but that is how a third party system needs to receive my data.
Can you point me to the right direction in how to create multiple values in a dynamic subject field separated by specific values?
Thanks in advance,
Peter.
I'm trying to create a dynamic subject with multiple values (in V4). I found some answers at this forum but I can't get it to work. I added a "custom code" event before the "email" event and I added "subject_1" in the "dynamic subject" field. Based on example code on your forum I added in the "custom code":
<?php
$form->data['subject_1'] = 'Melding'.{$form->data['Ringjaar']}
?>
I tried several different syntaxes because I'm not sure about the quotes but it's sending email with the subject "DEFAULT SUBJECT" so it's obviously not working. I also wonder if the word "Melding" needs to be the name of the form, or that it's just a text.
I would like to get a subject with multiple values, separated by a "at-sign" or a "forward slash". Perhaps strange, but that is how a third party system needs to receive my data.
Can you point me to the right direction in how to create multiple values in a dynamic subject field separated by specific values?
Thanks in advance,
Peter.