combine 2 fields to create subject?

rodsdesign 12 Feb, 2008
Hi,

I need to create a subject field for the special codes tab that combines 2 fields from the form.

The scenario is that this form is going to a ticketing system that will look for a subject like - Web: Problem [User subject] where user subject is a text field and Web: Problem is created from a drop down.

Is that possible?

I tried to combine them in the "On Submit Code - Before sending email", but of course, that doesn't work.

Is there another way to do this?

thanks
GreyHead 12 Feb, 2008
Hi rodsdesign,

Yes, you can do this in the OnSubmit before email box. The code will be something like:
<?php
$_POST['subject'] = $_POST['user_subject'] & " " & $_POST['web_dropdown'];
?>
To have this work you'll need to include a hidden field named 'subject' in your form and put subject in the Special Fields 'Subject' box.

Bob
rodsdesign 13 Feb, 2008
Thanks Bob,

I forgot the $_POST for the variable... duh...
appreciate you!
GreyHead 13 Feb, 2008
Hi rodsdesign.

You're welcome!

Bob
This topic is locked and no more replies can be posted.