Menu
I am trying to submit a form via email. There is no validation required.
I have used the following code. Where am I going wrong?.
Thanks
function XDocument:?nSubmitRequest(eventObj)
{
try
{
var submitDestination = thisXDocument.DOM.selectSingleNode”[email protected]”).value
var emailSubmit = thisXDocument.DataAdapters[“EmailSubmit”].value
emailSubmit.Submit()
thisXDocument.UI.Alert(“The form has been successfully submitted to ” + submitDestination + “.”)
eventObj.ReturnStatus = true
}
catch (e)
{
thisXDocument.UI.Alert(“Could not submit ” + ex.Message)
eventObj.ReturnStatus = false
}
}