Avatar

Level 9

Hi Ian,

This can be done by using a dummy submit button.  Try the following.

Drag a button into the form. Lets name it as DummySubmitButton. Then in the control Type select Submit. In the Presence dropdown select Invisible.Then select Submit tab next to Field tab.Then in the SubmitURl mention the url you want to send. Like this - mailto:test@testmail.com. Select Submit As XML/ PDF as you want. This button will not be visible in the form.

Now drag another button. Lets name as SubmitButton. This will be visible in the form. It will be or regular control type. In the click event of this SubmitButton write the following code

DummySubmitButton.event__click.submit.target = "mailto:test@testmail.com" + "?subject=" + "New e-DCR " + TextField12.rawValue ;

DummySubmitButton..execEvent("click");

What this script will do is it will use set the submit functionality like mailto, Subject before submitting. After setting these parameters finally the click event of the dummy button would be called and it will submit the form.

Hope this helps.

Thanks,

Bibhu.