Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to Have Same Form Sent to Contingent Email Recipients?

Avatar

Avatar
Level 2
_Nojun_Kmail_
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
_Nojun_Kmail_
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile
_Nojun_Kmail_
Level 2

06-03-2009

I'm trying to create a form that should go to different sets of email recipients depending on a choice selected from a drop down list menu.

I know how to create the drop-down list, but I can't figure out how to connect it to some kind of "if, then" button or command? Who knows how to solve this?

Replies

Avatar

11-03-2009

WOW now it works ;D

Just tried some things out. It wasn't the script 🙂



For all the others, trying to accomplish the same as I do:

The "real e-mail button" has to be set a real e-mail button, not just a button. Then it works. 🙂

(First time I tried something with e-mail buttons 😉 )



Thanx Paul 🙂

You are still my favorised (programmer) HERO in here 🙂

Avatar

Avatar
Level 1
tluthman
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
tluthman
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile
tluthman
Level 1

13-03-2009

I would be very happy if I could get a copy of that script as well.



tluthman(at)nordicwater(dot)se



Thanks in advance

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

13-03-2009

Just sent it

Avatar

Avatar
Level 2
_Nojun_Kmail_
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
_Nojun_Kmail_
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile
_Nojun_Kmail_
Level 2

13-03-2009

Paul's script is fantastic. I've just figured out how to use it. My first time ever creating a form.



However, I've still a question about how to further modify it so as to also re-program the cc, subject line, and text body. I tried to copy script I've found in other forums but it doesn't seem to work here, perhaps because its already a re-programmed conditional button.

I keep getting a message error code 4' (invalid token) in reference to the scripts email subject line. Paul, would you, or anyone on the list know, what's the issue here:



RealEmail.event__click.submit.target = mailto: + DropDownList1.rawValue?cc=testform@test.com&subject=Re: Testing New Form&body=Please%20find%20attached%20the%NewForm%21″;

RealEmail.execEvent(click);

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

13-03-2009

You have errrors in your statement it shoudl look like this:



RealEmail.event__click.submit.target = mailto: + DropDownList1.rawValue + "?cc=testform@test.com&subject=Re: Testing New Form&body=Please find attached the NewForm.″;

RealEmail.execEvent(click);



Note the use of the quotation marks around the rest of the string ...that is what you were missing.

Avatar

Avatar
Level 2
_Nojun_Kmail_
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
_Nojun_Kmail_
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile
_Nojun_Kmail_
Level 2

13-03-2009

Thanks very much, Paul.

However, when I'm now using exactly this string, then I get an 'xml parsing error not well formed code 4 (invalid token)' for column 107, i.e. between "subject" and "=". Would you, or anyone on the forum know how to fix it?



RealEmail.event__click.submit.target = mailto: + DropDownList1.rawValue + "?cc=testform@test.com&subject=Re: Testing New Form&body=Please find attached the NewForm.″;

RealEmail.execEvent(click);

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

13-03-2009

Its the quotes ..when you paste from this board into designer the quotes are represented by a different char. Delete each quote and type a new one and try it again.

Avatar

Avatar
Level 2
_Nojun_Kmail_
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
_Nojun_Kmail_
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile
_Nojun_Kmail_
Level 2

13-03-2009

Thanks, great point, Paul. However, the same error message still persists.

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

13-03-2009

send the form to livecycle8@gmail.com and I will have a look on Monday

Avatar

Avatar
Level 2
_Nojun_Kmail_
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
_Nojun_Kmail_
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
View profile
_Nojun_Kmail_
Level 2

16-03-2009

Paul, you're a genius. I've just tested it and it works wonderfully.

Cheers,

Markus



For all those who had similar issues: Consider putting an amp in when modifying subject or body for a submit button with variable addresses, such as:



= "mailto:" + DropDownList1.rawValue + "?cc=test@test.com&subject=testsubject text&body=testbody test.";



Whereas testsubject text

and

whereas testbody text.

could be any text