Expand my Community achievements bar.

Multiple Submit Email buttons with multiple sections

Avatar

Level 1

I am designing an interactive form to be sent out and completed.

I have 10 questions total in the form, Each question made as a text field with a textbox heading.

I want the form to be completed, and the final submit button to go to my email.

But i want question 5 (and 5 only), to be sent to a different email.

How can I insert a submit email button at question 5, that will only send the question 5 responses to that email address.


I have been looking and trying different things but can not figure it out.

Any help would be great.

Thank you.

Yianni

4 Replies

Avatar

Level 5

My idea..

You send not the form. You send only the entries.

In the second button you have to change the email and the TextField_Content1.

For example with the first mail you send the content from the TextField_Content1 and TextField_Content2. (in your form answer 1-5)

With the second mail you send the content from the TextField_Content3 and TextField_Content4. (in your form answer 6-10)

var Mailto = "test@test.de";

var BetreffSubject = TextField_Subject.rawValue;

var NachrichtMessage = "Content 1: " + TextField_Content1.rawValue + "\nContent 2: " + TextField_Content2.rawValue;

var CC = "test2@test.de";

var BCC = "test3@test.de";

var Mail = "mailto:" + Mailto + "?Subject=" + BetreffSubject + "&Body=" + NachrichtMessage + "&cc=" + CC + "&bcc=" + BCC;

event.target.submitForm({

cURL: Mail,

bEmpty: true,

cSubmitAs: "XML"

});

I hope it's helpful?

Mandy

Avatar

Level 1

Thank you for this information, it is very helpful, however I am still not completely sure how to achieve what you have mentioned aobve.


Do i insert a normal button? In what field do i edit the above information?

Thank you.

Avatar

Level 5

Yes, you have to use a normal button, please see the below screenshot.

The script have to copy in the click-event from the button. You need two buttons.

button.jpg

Avatar

Level 1

Thank you again.


I have entered the information above but when i am sending to create the pdf it is failing, and something is wrong with the script. Please see screen shots of click, and XML source.

Can you tell me what is wrong?

PrtScrn - Design View + Click.JPG

PrtScrn - XML Source.JPG