To combine 2 text form fields (concatenate) you need to create a hidden form field
Right click the form for Form Properties, Advanced, Add,
Name the field (say NewSubject) and give it a default value (say "No Subject Selected").
To do the concatenation (say of 2 text fields named field1 and field2)
- select the submit button and then switch to Html/Code View
- add an onclick event handler (all on 1 line)
onclick="this.form.NewSubject.value = this.form.field1.value + " " + this.form.field2.value;return true;"
So if field1 = ABC and if field2 = DEF then NewSubject field will = ABC DEF when the submit button is clicked
- you may want to make field1 & field2 as required fields using form field validation if you always want a subject other than No
Subject Selected.
To add any field (including your new hidden field as a subject to an email
Right click the form for Form Properties, Options,
- select the Subject Option and enter the Field name (say NewSubject) in the subject box
| I have created a form that successfully e-mails the results to the necessary e-mail address and saves the data in a spreadsheet.
However, I was wondering if it would be possible to take the values from one or more fields and use them as the subject of the
e-mail. Any help appreciated