#70315EXT:form - Error with multiple forms on one page
Description
If you put 2 forms on a page and submit it, both forms are send by mail.
Try it:
Form1
class = standardForm
enctype = multipart/form-data
method = post
prefix = otherForm
confirmation = 1
postProcessor {
1 = mail
1 {
senderEmailField = email
senderNameField = surname
subjectField = subject
recipientEmail = mail@example.com
priority = 1
organization = TRITUM
senderEmail = mail@example.com
subject = sdsdsd
}
}
10 = TEXTLINE
10 {
name = textfield 1
label {
value = Edit this label 1
}
}
20 = SUBMIT
20 {
class = xxx
name = submit1
value = Submit form
}
Form2
class = standardForm
enctype = multipart/form-data
method = post
prefix = standardForm
confirmation = 1
postProcessor {
1 = mail
1 {
senderEmailField = email
senderNameField = surname
subjectField = subject
recipientEmail = mail@example.com
priority = 1
organization = TRITUM
senderEmail = mail@example.com
subject = sdsdsd
}
}
10 = TEXTLINE
10 {
name = textfield 1
label {
value = Edit this label
}
}
20 = SUBMIT
20 {
class = xxx
name = submit2
value = Submit form
}