combining two form fields into one field

M

Mike Driver

We currently have a form field inserted into the subject
line of the email that is generated as a result of the
form. Does anyone have any ideas on how to combine two
form fields into the subject line...
 
S

Stefan B Rusynko

In the form, right click | Form Properties | Advanced | Add | Name the field (say: thesubject) and give it a value, then create one
for the "rest" of the subject (say: rest).

To do the concatenation in the submit button add an onclick event handler
onclick="this.form.thesubject.value = this.form.subject.value + " " + this.form.rest.value;return true;"
So if subject = Complaint and if rest = From Web
then thesubject will = Complaint From Web
when the submit button is clicked.
Now use thesubject as your field name in Form Properties Options



| We currently have a form field inserted into the subject
| line of the email that is generated as a result of the
| form. Does anyone have any ideas on how to combine two
| form fields into the subject line...
 
Top