Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > E-Mail Form Suggestion ... View modes: 
User avatar
Member
Member
Yalın - 5/26/2010 8:43:01 AM
   
E-Mail Form Suggestion ...
We would like to have a simple email form with fields that does not save any data but simply e-mails a particular address withing our Kentico Site, what would be the ideal "Kentico" method in accomplishing that? (Or should we just write a regular aspx email form and frame it in?)

(Abuse Reports and BizForms all save data in their current form, and we can not have that due to internal policy about this particular task)

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 5/30/2010 11:32:24 AM
   
RE:E-Mail Form Suggestion ...
Hi Yalin,

You can use BizForms and in its OnBeforeSave event handler set 'StopProcessing' property of BizForm to true so it won't save any data into DB.

Best Regards,

Martin Dobsicek

User avatar
Member
Member
Yalın - 6/16/2010 12:21:27 PM
   
RE:E-Mail Form Suggestion ...
Here's what I have done, in order to have proper communication, I will explain it in easy to understand steps...

1 - I opened ~\CMSWebParts\BizForms\bizform.ascx

2 - Under Design view found the BizForm Control event onBeforeSave and added it to the codebehind

3 - Final code at the bottom of the codebehind of "~\CMSWebParts\BizForms\bizform.ascx.cs" is...

...


protected void viewBiz_OnBeforeSave()
{
this.StopProcessing = true;
}


When I tested the site, it still seems to save to the BizForms List of entries.

Please assist me in resolving this issue. Thank you

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 6/20/2010 1:30:32 PM
   
RE:E-Mail Form Suggestion ...
Hello,

Could you please try to debug the BizForm control and check if this line is accessed when you submit data to BizForm? Could you please also let me know what version of Kentico CMS you use? Thank you in advance.

Best Regards,

Martin Dobsicek

User avatar
Member
Member
Yalın - 6/22/2010 5:47:51 PM
   
RE:E-Mail Form Suggestion ...
I can't figure out how to debug it since running it from Visual Studio ends with an error that it is not configured, please advise.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/23/2010 3:53:03 AM
   
RE:E-Mail Form Suggestion ...
Hi,

What is not configured? The debug mode? You need to enable it in the web.config file.

Set the debug parameter in compilation element to true and save this change.

Best regards,
Juraj Ondrus

User avatar
Member
Member
Yalın - 6/23/2010 7:51:17 AM
   
RE:E-Mail Form Suggestion ...
Debug is enabled, but when the built-in server launches the site, the site has the error saying that the site is not configures with the domain.

Thank you.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/24/2010 1:28:19 AM
   
RE:E-Mail Form Suggestion ...
Hi,

Thank you for the details. You need to add a license key for the domain name on which you are running the debug and then add this domain name as domain alias for your site and if there is a port number, you need to add this port number with the domain name to the domain aliases as well.

Best regards,
Juraj Ondrus