cancel
Showing results for 
Search instead for 
Did you mean: 

e-mail button - dynamic subject

Former Member
0 Kudos

I have a form with an e-mail button.

field type: button.

Control Type: Submit

Submit to url:

mailto:joe@mail.com?subject=E-Mail Subject

Is there a way to modify the e-mail subject dynamically to reference something from the data view?

I'm using WD Abap.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You can use a script like

xfa.resolveNode("form1.page1.Button1.#event.#submit").target = "<your mailto url>";

or

this.resolveNode("#event.#submit").target = "mailto:juergen.hauser@sap.com";

and replace the SOM expression to get to your button. (Button1 is the email button, it is on "page1" on "form1".

The second script line is relative to the email button. Which script to use depends on which event you chose.

Best regards

Juergen