Add-ons

Forms Module Notification

by George Saadeh (Other Publisher)
Updated on: April 19, 2011 | 8108 views

Compatibility: Version 4.1 SP1 , Version 4.1 , Version 4.0 SP1
Version: 1.0.0.0
Tags: Free
Terms Of Use

Download from Publisher
FREE

An add-on for the built-in Forms Module that will enable email notifications to be sent upon form submission.

Installations instructions:

  1. Download the project from the link
  2. Add reference to this project from your Sitefinity project
  3. Open the Sitefinity administration and go to Administration -> Settings -> Advanced -> Toolboxes -> PageControls -> ContentToolboxSection -> FormsControl and set the settings as follows:
  • Control type: FormsNotification.FormsControlCustom, FormsNotification
  • Name: FormsControlCustom
  • Title: Forms Control
  • ResourceClassId: clear the textbox


This will replace the default Forms Control with the Custom Forms Control and you are ready to drop it on your pages.

To set the smtp settings Go to Administration -> Settings -> Advanced -> System -> SMTP (Email Settings)

Sitefinity CMS validated extension

 

Screenshot:

Forms Notification

66 comments

  • George 20 Apr 2011
    07:18 AM
    Added support for 4.1 and should be available soon in the 1.0 version of the widget.
  • Stan 20 Apr 2011
    08:11 AM
    Great! Thanks, George!
  • Robert 07 May 2011
    01:13 AM
    I followed all the instructions, but the contact form is not sending the email. Any ideas?
  • Robert 07 May 2011
    01:42 AM
    Nevermind, I found the problem.  I had enabled SSL turned on when it should have been off.  It works great now.  Thank you so much!
  • David 09 May 2011
    11:33 AM
    This control looks great, but I'm having problems with the functionality.

    I added the reference, and got all the settings, but when I drop the forms control on a page, when it's pulling up the editor to select the form and set the email information I get an error when it is retrieving the subject information for the form that Form ID cannot be an empty Guid.

    Is this because the form was created in 4.0, prior to upgrading to 4.1 and adding this control?

    Thanks!
  • George 10 May 2011
    04:36 AM
    David,

    The issue that you encountered is related to the Form's ID in Sitefinity and not specifically to the control. I suppose it's entirely related to the upgrade from 4.0 to 4.1. You can try the following:

    1- Try to edit the form that you created then publish it again, if it doesn't work, you might have to recreate the form.
    2- Try to create another test form on 4.1 and check if this time it's going to work.If not, try to create another form as well and check if it will be published (ID should not be an empty Guid)

    If none of the above works, I believe it was not a successful upgrade to 4.1 and you should reconsider trying again or waiting for the hotfix which should be released this week.

    Let me know if this works for you

    Thanks
  • George 10 May 2011
    04:42 AM
    You can also check that on the database level, navigate to sf_form_description table and see if all  rows have a content_id that is not an empty Guid
  • David 10 May 2011
    09:27 AM
    George,

    Thank you for your response.  I ended up figuring out what my problem was, and was only distracted by the error message being logged.   We have two SMTP servers to relay emails off of, but apparently one is for internal use, and the other is for external use.  I was on the wrong one, and that's why the emails weren't going out.

    The error I was seeing was after clicking edit on the forms control once drug onto a page.  After I included the project, and not just the dll, into my solution I was able to figure out what was causing it and modified the code of FormsControlCustomer.Subject a little.  I changed the relevant lines from just:

    1.var formId = this.FormId;
    2.var formMgr = new FormsManager();
    3.var formDescr = formMgr.GetForm(formId);
    4. 
    5.propertyValue = String.Format("{0} {1} - Submission", formDescr.ApplicationName.TrimEnd('/'), formDescr.Title);

    to:
    01.if (this.FormId != Guid.Empty)
    02.{
    03.    //A form has been selected
    04.    var formId = this.FormId;
    05.    var formMgr = new FormsManager();
    06.    var formDescr = formMgr.GetForm(formId);
    07. 
    08.    propertyValue = String.Format("{0} {1} - Submission", formDescr.ApplicationName.TrimEnd('/'), formDescr.Title);
    09.}
    10.else
    11.{
    12.    //The user has not selected a form to put on the page yet
    13.    propertyValue = String.Empty;
    14.}

    That stopped the error message from being thrown when adding the control to a page.

    Thanks for adding your control, it works really slick!
  • Landon Miller 17 May 2011
    09:13 AM
    Awesome notification that really compliments the Sitefinity form control.  Had a few questions and George was quick to help.

    Thanks for your work on this George!
  • Adam 18 May 2011
    09:10 AM
    Any update for 4.1 SP1?
  • George 18 May 2011
    09:37 AM
    Adam,

    I just tested the control with 4.1 SP1 and it is working properly. Are you having any issues?
  • Adam 18 May 2011
    10:24 AM
    My bad, I was having issues but I just had to recompile using the new .dll files from SP1, forgot that :) Thanks anyways George, very nice module!
  • Jeremy 19 May 2011
    12:05 PM
    Works perfectly, thanks very much for creating this.
  • Mark 22 May 2011
    04:46 PM
    I'm having trouble getting this to work. I've added the assembly and created a new reference in the toolbox menu for the control. When I drop it onto the page I receive the error:

    COould not load file or assembly 'Telerik.Sitefinity, Version=4.1.1339.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    My initial Sitefinity installation was 4.0, I then upgraded to 4.1, and then 4.1SP1. I then installed this widget.

    Anyone have any clues?
  • Adam 22 May 2011
    08:00 PM
    @Mark: I had the same issue, but you have to recompile the module with new 4.1 SP1 dll files, that worked for me after replacing the new compiled FormsNotification.dll 
  • Mark 22 May 2011
    08:19 PM
    @Adam, thank you for setting me straight!

    @George, this is a fantastic widget, thank you very much for your creation.
  • Markus 23 May 2011
    07:33 AM
    @Georg

    Implemented it and the mails arrive, but

    when I click on to reponses in content - forms I get an : Object not set to an reference error. (Form is called test, url it wants to open http://aaa.com/Sitefinity/Content/Forms/Entries/sf_test

    when I click on the form and without making changes I get an warning: Do you want to switch from this page: By navigating away from the editor the item will remain locked (which it does not) You can use Back to Pages/Templates link to leave and unlock. are you sure.

    a) warning is not needed
    b) warning writes about back to pages/templates link

    is this a SF issue are an implimentaion issue by me or you?

    Markus

    PS: Sure would hope that Telerik would include this fast. Also it would be nice if the helptext would state if mulitple e-mail addresses have to be seperated by ;, or space.

  • George 23 May 2011
    07:56 AM
    Hi Markus,

    Thank you for feedback regarding the widget.

    I must say this issue is not related to the widget as you should be able to see the responses as you would normally do without it. What i suggest is that you revert back to the original settings with the standard forms control, create a new form and do the tests. I am convinced that something went wrong with the various upgrades that you have performed. Let me know what happens and I will try to assist you.

    Best,

    G
  • John 25 May 2011
    09:46 AM
    How would you recompile with the new files?
  • George 26 May 2011
    11:09 AM
    Hi John,

    You can download the DLL for 4.1 SP1 here

    http://dl.dropbox.com/u/5444747/FormsNotification_4.1_SP1.rar

    Let me know if you need anything else

    G
  • Jim 06 Jun 2011
    10:22 AM
    Hi George,

    When referencing your project in my project, can you provide a little detail on how I do that?  Do I simply place the FormsNotification.dll in the bin folder, create a reference to it, and copy the Resources folder to my project?

    Jim
  • George 06 Jun 2011
    10:30 AM
    Hi Jim,

    Depending on the version that you use, you may copy the relevant FormsNotification.dll to your Sitefinity website's bin folder and adjust the settings in the Sitefinity back-end as described in the ReadMe file. You do not need to add any of the source files to your project.

     Also note that if you are using Sitefinity 4.1 SP1 you should download the dll from http://dl.dropbox.com/u/5444747/FormsNotification_4.1_SP1.rar.

    Let me know if you need anything else.

    Best,

    G
  • Steph 10 Jun 2011
    11:48 AM
    Hi George,

       I'm trying to implement this module.  I am using SF 4.1.1395.  I got the .dll file from the post above and added a reference to in it my project.  I also changed the backend settings as stated in the readme file.  I was able to create and publish a new test form.  However when I click on any of my pages to add the form is get the following error:

    Could not find the specified key "Forms Control" or class id "clear the textbox".


    I'm not sure what the fix would be for this. 

    Thanks,

    Steph
  • George 13 Jun 2011
    11:57 AM
    Hi Steph,

    Can you send a screenshot for the settings that you have in the backend? I will try to help you fix the issue.

    G
  • Vivid 14 Jun 2011
    04:35 AM
    Hi George,

    I'm unable to add multiple email address using comma or semi colon with in Email Options

    Email address(es) to send form submissions To

    Email address(es) to CC on form submissions


  • RichW 27 Jun 2011
    05:58 AM
    Hi George, that link to the dll for version 4.1 sp1 doesn't seem to be woring. could you provide a copy of the dll?

    many thanks
  • George 27 Jun 2011
    06:18 AM
    Hi RichW,

    I checked the link for you and it's working. Download the dll from here

    http://dl.dropbox.com/u/5444747/FormsNotification_4.1_SP1.rar

    If it doesn't work with you, provide me with your email address and I will send it to you.

    George
  • RichW 27 Jun 2011
    06:20 AM
    Hi George, not to worry - I found the file.
    One question though - has this been tested with version 4.1.1405?

    I've added the dll and the reference, entered the settings in the backend as above, and recompiled the project; however when I come to drop the control on the page I get the following error:

    Could not load file or assembly 'Telerik.Sitefinity, Version=4.1.1395.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    which I believe means that it doesn't work with the latest version. Will this be due soon?

    Thanks for your time
  • George 28 Jun 2011
    11:22 AM
    The Forms Module Notification Widget works well for the 4.1 SP2 release.

    However, you will need to download the appropriate dll from here:

    http://dl.dropbox.com/u/5444747/FormsNotification_4.1_SP2.zip

    Best
  • Alex 28 Jun 2011
    06:34 PM
    Hello
    Nice tool. One question though: If the user that completes de form has to receive the email, how should I do it? Let's supose the user fills in an email field and on submit the email must be sent to that certain address!
  • George 29 Jun 2011
    05:35 PM
    Hi Alex,

    I believe this is feasible. You have to have a predefined name for the Email field. Then you can add the Forms Module Notification widget project to your solution and modify the code where you read the field values. You read the email of the person who submitted the form and then send an email accordingly. Contact me on gsaadeh.com if you need further assistance.

    Best
  • Majid 18 Jul 2011
    07:15 AM
    I want to send notification to form filler, and their email address is one of the form fields.
    how could I do it?!
  • shae 18 Jul 2011
    04:08 PM
    Can somebody please provide some more information on how to implement this?

    For instance, describe how you add reference to this project from your Sitefinity project.

    I'm new to this and I'm trying to add this functionality which should have already be added in the first place.
  • George 19 Jul 2011
    11:03 AM
    Guys,

    I will prepare the code and send you the updated project and DLL to handle sending an email to the person submitting the form. I will get back to you shortly.

    Cheers
  • George 20 Jul 2011
    06:05 AM
    Hey Guys,

    I have just completed the 1.2 version of this widget which includes support for sending an email to the person submitting the form. Read more about this here:

    http://www.gsaadeh.com/blog/post/11-07-20/Forms_Module_Notification_1_2.aspx

    Cheers
  • Javier 20 Jul 2011
    09:00 PM
    How do you add reference to this project from your Sitefinity project?
  • Stacey 26 Jul 2011
    03:19 PM
    I have noticed that the email addresses with "_" in them will fail the regular expression check for IsValidEmail.  Any suggestions on how to modify that string to allow this?

    example: no_reply@domain.com will fail for the validity check.
  • ace 11 Aug 2011
    03:17 AM
    Hi,

    I have a Version=4.1.1395.0. after adding a reference to the FormsNotification dll and editing the settings of the formsControl, I've been encountering the error below 

    Could not load file or assembly 'Telerik.Sitefinity, Version=4.1.1395.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    I have downloaded the dll on this link http://dl.dropbox.com/u/5444747/FormsNotification_4.1_SP1.rar

    I hope you could help me resolve my problem. 




  • ace 11 Aug 2011
    04:12 AM
    Hi,

    I have a Version=4.1.1395.0. after adding a reference to the FormsNotification dll and editing the settings of the formsControl, I've been encountering the error below 

    Could not load file or assembly 'Telerik.Sitefinity, Version=4.1.1395.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    I have downloaded the dll on this link http://dl.dropbox.com/u/5444747/FormsNotification_4.1_SP1.rar

    I hope you could help me resolve my problem. 




  • George 18 Aug 2011
    08:15 AM
    Hi Ace,

    Could you use Reflector or any other similar tool to check which version of Sitefinity the FormsNotification truly requires. Let me know if you need any help and i'll gladly assist you.

    Cheers
  • George 18 Aug 2011
    10:30 AM
    Hi Ace,

    Could you use Reflector or any other similar tool to check which version of Sitefinity the FormsNotification truly requires. Let me know if you need any help and i'll gladly assist you.

    Cheers
  • Igor 22 Aug 2011
    12:18 AM
    George,

    First of all thank you for great and much needed add-on to Sitefinity. I recompiled the control under Sitefinity 4.1 SP3 (this is what we are using at the moment) and it compiles fine, and I can add it and use the added functionality with the forms that I created. However, I cannot get it to send confirmation email. As per your video, I put in the control onto a page, chose a form and set up email textbox name to start with "Email". I set up SMTP Email server setting in Sitefinity, using both smtp.ourservername.com and mail.ourservername.com, with the necessary ports that our organisation requires. I tested thje form, it works fine but the site does not send confirmation email. What could be the reason for that? Your help will be much appreciated.

    Thanks in advance,
    Igor
  • George 22 Aug 2011
    04:29 AM
    Hi Igor,

    Thank you for your kind words. In order to effectively track the issue please run the following tests:

    1- Test the the SMTP server settings using http://www.sweetylife.com/smtper/
    2- If it works, then try to setup the forms notification module without the confirmation email and see check if the "Sent to address" is receiving the message
    3- If 1 and 2 works then please carefully follow the instructions from the video.
    4- If 3 doesn't work, then it is best to debug the application and see if the user's email is being caught in the following piece of code:

    if (fieldControl.MetaField.FieldName.ToLower().Contains("email"))
    {
        _clientEmailField = ((FormTextBox) fieldControl).Value.ToString().Trim();
    }

    Let me know how it goes so I can better assist you.

    Regards,

    G
  • Jim 22 Aug 2011
    07:58 AM
    When will a version of your notification module be available for SF 4.2?
  • Mike 22 Aug 2011
    10:24 AM
    I'm running SF 4.1 sp1 and I tried to install this DLL to my project and I keep getting the following error message when I try adding the widget to one of my pages:

    Could not load file or assembly 'Telerik.Sitefinity, Version 4.1.1395.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependecies. The located assembly's mainifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


    what am i mising? I downloaded the DLL from the url's listed above and tried both and I get the same error for each one.
  • Jim 25 Aug 2011
    11:37 AM
    Hey George,

    A couple of questions...

    1) The Advanced button is not showing on the Properties window of the control.  I need this to set my CSS class for the form.  Any idea why it doesn't show?

    2) The text I entered for the subject of the notification was not used?  The email I received had a different subject than what I had entered.  Any idea why?

    3) Is there a way to modify the order that the fields/values are displayed in the body of the email notification?  Mine had LastName, then Comments, then State, then FirstName, etc.  The order isn't logical.
  • Robert Hurd 25 Aug 2011
    08:56 PM
  • Steph 07 Dec 2011
    03:25 PM
    Hi George,

    On my form I have an email address text field, where the user inputs their email address.  Is there a way that I can make the user's email address the sender email address for when the form gets sent to the company's account?  So it looks like that email was sent directly by the user?

    Thank you,

    Steph
  • Steph 09 Dec 2011
    12:53 PM
    Hi George,

    Another question, is there a way to change the column size for a paragraph text box?  I saw in the advanced options that rows can be specified, but I couldn't find where to change the column size.  I tried changing the size under appearance and changing it to medium and large, but it doesn't seem to be working as the text box is staying the same size.  I even tried refreshing the page, and clearing the cache.  Still no change in the size.

    Thank you,

    Steph
  • Paulo Dinis 24 Jan 2012
    11:30 AM
    Hi

    I was hable to run the module in sitefinity 4.4 but I have run into a problem, the FormsControl.aspx is no longer applied, you can change it but nothing changes... the module still works even if you rename the file without touch the LayoutTemplateName overidden property.

    Can someone explain-me why this happens?
    I love the module has it is but i woud like to add some html in the top of all fomrs.

    Thanks in advance
  • Steph 26 Jan 2012
    02:54 PM
    Hi,

      I had made a post about a month and a half ago about changing the To, From, Subject of the email that is being sent.  Does anyone know how to accomplish this?  I'm looking to edit these fields, the main functionality I'm looking for is the FROM field to display the person's email address who filled out the form, how can I do this?

    Any ideas would be helpful!

    Thank you,

    Steph
  • Abilio Duarte 02 Feb 2012
    06:44 PM
    Hi there.
    Paulo I´ve been trying to integrate the module in sitefinity 4.4 with no success can you tell me how you did it?
    thanks in advanced
  • George 06 Feb 2012
    11:30 PM
    Hi Guys,

    Sorry for being so disconnected for a while. 

    The version compatible with 4.4 can be downloaded from: http://www.gsaadeh.com/Downloads/FormsNotification-1.2-4.4.rar

    @Steph: I am not sure what is your requirement, can you elaborate some more?

    Thanks,

    G
  • Steph 07 Feb 2012
    11:12 AM
    Hi George,

        I have the forms module implemented on my website.  I added a forms widget to a specific page, for example /support.   Then I click edit and I'm brought to the screen to pick the form and then be able to edit the email options.  Under the email options, you can change the subject, the email addresses that the form information gets sent to, and then the sender email address (SMTP account). 
    Then when the user hits submit on the form, the email address gets sent to our support team, but the From: field on the email is that of the sender email address (SMTP) that I filled out when editing the form on the page.  My question is, is there a way to change the From: part of the email to the user's email address?

    For example:
    Our form has the fields Name, E-mail, and Issue.  When the clicks submit, the information goes directly to our support team.  In their inbox, they see a list of emails from support@websitename.com.  Can I alter this field so that the email address of the person who filled out the form shows up?  So the inbox will show that the emails are coming from the different users and not just support@websitename.com.  Therefore, our support team doesn't have to open the email to immediately see who the email is actually coming from.

    I hope that is a better explanation.

    Thank you,

    Steph
  • Chris 16 Feb 2012
    10:54 AM
    Have the installation instructions changed with sitefinity 4.4? I noticed the path to the FormsControl setting has changed in the advanced settings view but I still went ahead with the installation instructions as best I could. But now when trying to add a form to my page I get an error message
    "Could not load file or assembly 'Telerik.Sitefinity, Version=4.4.2117.0, Culture=neutral, PublicKeyToken=b28c218413bdf563; or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"
  • Chris 16 Feb 2012
    03:00 PM
    Have the installation instructions changed with sitefinity 4.4? I noticed the path to the FormsControl setting has changed in the advanced settings view but I still went ahead with the installation instructions as best I could. But now when trying to add a form to my page I get an error message
    "Could not load file or assembly 'Telerik.Sitefinity, Version=4.4.2117.0, Culture=neutral, PublicKeyToken=b28c218413bdf563; or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"
  • Lisa 01 Mar 2012
    10:42 AM
    I'm trying to implement this on my Sitefinity 4.2, and I followed exactly what you said in the original post, but I keep getting the error box "Could not load file or assembly 'FormsNotification' or one of its dependencies. The system cannot find the file specified."
    How do I fix this?  Or can you give me the original code that was in there to begin with?  It got deleted from the file I saved it to.  Thanks.
  • George 01 Mar 2012
    11:57 AM
    Hi Lisa,

    Please take a look at this blog post where you can download the appropriate DLL for your site and there is a video where you can use the source code as well.

    http://gsaadeh.com/blog/11-07-20/Forms_Module_Notification_1_2.aspx 

    Let me know if you need anything else,

    Cheers
  • Lisa 06 Mar 2012
    02:48 PM
    Can you tell me what was originally in these fields? 
    • Control type: FormsNotification.FormsControlCustom, FormsNotification
    • Name: FormsControlCustom
    • Title: Forms Control
    • ResourceClassId: clear the textbox
    I need to revert back to original and can't locate the information that was in these fields to begin with.  
  • Lisa 08 Mar 2012
    02:44 PM
    Can you tell me what was originally in these fields? 
    • Control type: FormsNotification.FormsControlCustom, FormsNotification
    • Name: FormsControlCustom
    • Title: Forms Control
    • ResourceClassId: clear the textbox
    I need to revert back to original and can't locate the information that was in these fields to begin with. 
  • Lisa 08 Mar 2012
    03:36 PM
    Can you tell me what was originally in these fields? 
    • Control type: FormsNotification.FormsControlCustom, FormsNotification
    • Name: FormsControlCustom
    • Title: Forms Control
    • ResourceClassId: clear the textbox
    I need to revert back to original and can't locate the information that was in these fields to begin with. 
  • George 16 Mar 2012
    06:58 AM
    Hi Lisa,

    I sent you an email regarding that so you should be able to do it.

    Let me know if you need anything else.

    George
  • Radu 11 Apr 2012
    07:10 AM
    Hello,

    I'm new on SF and I have to implement this module. I am using SF 4.1.1501.0 and the site is live. Can you provide a tutorial step by step how to implement this module? I do have FTP and SF Administration access.

    Thank you.
  • Angel Gomez 18 Apr 2012
    08:05 PM
    Hi all, is there any way to run this great module over sitefinity 5??. 
    For perfomance reasons we had to upgrade our CMS but some old developments are not compatible?.

    Any help would be appreciate!

    Thanks in advance!
  • Angel Gomez 18 Apr 2012
    09:26 PM
    If you compile the project using the latest Telerik dll (in my case dll of v 5.0), the FormsNotification.dll works properly.
  • Tony 16 May 2012
    09:43 AM
    This worked for me too.  I just removed the references to the old telerik dlls and added the new ones then compiled.  The latest version of Sitefinity is missing an openaccess ado.net2 library but I just removed it.  Seems like it's working though.

Add Comment

  • Providing an email will subscribe you for receving comment notifications.

  •