This was the first time that I have added a XForms template in CMS5 - as our other websites that have XForms are CMS4 - therefore I don't have a working example.
I downloaded the Public Package with the Xforms template example and the Xform is displayed correctly - however when the submit button is clicked (which is setup to send an email and then redirect to another page) it doesn't work, it just performs a postback.
The event that is assigned to the AfterSubmitPostedData property of the FormControl is not fired when the button is clicked - the button does however cause a postback. The FormControl.FormDefinition.IsSent property after the submit button is clicked is false which is why I presuming the AfterSubmitPostedData event isn't triggered?
Below is the definition of the submit button:
<input class="xFormButton" type="submit" onclick="WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ctl00$ContentPlaceHolderContent$ContentPlaceHolderContent$XForm1$FormControl$ctl00", "", true, "", "", false, false))" name="ctl00$ctl00$ContentPlaceHolderContent$ContentPlaceHolderContent$XForm1$FormControl$ctl00" value="Submit Query"/>
Any help would be appreciated
Are you sure the problem isn't in your smtp settings?
thanks for the responses - as it turns out it was my SMTP settings, thanks Mattias.