- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
It still is not working..here's what I did:
I changed the button control type to regular. With the button highlighted I then changed "show" to click*. The I changed the language to JavaScript. Then I added the following code
switch (airportCode.rawValue) { case "EDDN": var vEmail = "someone@EDDN.ie"; var vSubject = "Airport: EDDN" break
case "EDDP": var vEmail = "someone@EDDP.ie"; var vSubject = "Airport: EDDP" break
case "ETAR": var vEmail = "someone@ETAR.ie"; var vSubject = "Airport: ETAR" break
}
var vBody = "Hi\n\nPlease find attached the completed form in XDP format.\n\nRegards,\n\nNiall" event.target.submitForm({cURL:"mailto: "+ vEmail +"?subject=" + vSubject +"&body=" + vBody,cSubmitAs:"PDF",cCharset:"utf-8"});
What am I doing wrong?Views
Replies
Total Likes