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
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.
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...
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?