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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Email button

Anto_bt
Level 3
Level 3

I have one dropdown list where i have employee
I need email button where i have 3 email adreses.
Eg. If it is selected one employee, then one adress if other, then other adress.

Thank you very much

3 Replies
_Bruce_Robertson
Level 10
Level 10

Hi,

If the drop down has the email address as the value of the items in the drop down (not the text of the items) then you can use code like;

var vEmailTarget = "mailto:" + this.boundItem(xfa.event.change) + "?subject=email subject";

EmailSubmitButton1.event__click.submit.target = vEmailTarget;

In the change event of the drop down.   If the email address is what is displayed in the drop down then change this.boundItem(xfa.event.change) to just xfa.event.change.

Regards

Bruce

Anto_bt
Level 3
Level 3

I don't have mail there... I just need if drop down one person then mail to his boss if other then to other boss and so on...

_Bruce_Robertson
Level 10
Level 10

Hi,

If the email address is not in the drop down then just replace the "this.boundItem(xfa.event.change)" part of the code above with whatever expression you have to determine the email address.

Or is that the bit you are having trouble with?

Regards

Bruce