After submitting form record submitting & email sent twice.

piyush@itdesignlab.com 06 Mar, 2013
Hello,
After submitting the form, the records are submitted twice in database and also two emails are sent to client. First one is with all correct records and second one is blank with only fields name.
Why it is happening?
Please tell the solution.
Im trying this from last three days, but not got solution yet.
Thanks in advance.
GreyHead 06 Mar, 2013
Hi piyush,

By default ChronoForms will only Email and save once so there is something in your form that is looping and repeating the actions.

Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

Note: if you are using the Easy Wizard you can turn on Debug on the Others tab.

Bob

PS I suggest that you do not use your email address as a username here it is publicly visible and may be scraped and spammed. If you PM or email me I can change it for you.
piyush@itdesignlab.com 06 Mar, 2013
Debug Code after submitting form:

Data Array:

Array
(
    [option] => com_chronoforms
    [view] => form
    [Itemid] => 4
    [chronoform] => Target_Darts_Contact_Form
    [event] => submit
    [first_name] => Testing
    [last_name] => Testing
    [email] => test@test.com
    [product] => Game Play
    [country] => Barbados
    [reg_card_pass] => 543543
    [date] => 
    [serial_number] => 5235235
    [input_submit_9] => Submit
    [0ee12ef144e2ce9ad34795cb4b82e436] => 1
    [chronoform_data] => Array
        (
            [cf_uid] => 886e79cf919b0c00a27270ade6c10a94
            [cf_created] => 2013-03-06 10:31:11
            [cf_created_by] => 0
            [cf_ipaddress] => 115.109.11.254
            [cf_user_id] => 0
            [option] => com_chronoforms
            [view] => form
            [Itemid] => 4
            [chronoform] => Target_Darts_Contact_Form
            [event] => submit
            [first_name] => Testing
            [last_name] => Testing
            [email] => test@test.com
            [product] => Game Play
            [country] => Barbados
            [reg_card_pass] => 543543
            [date] => 
            [serial_number] => 5235235
            [input_submit_9] => Submit
            [0ee12ef144e2ce9ad34795cb4b82e436] => 1
            [cf_id] => 28
        )

    [chronoform_data_cf_id] => 28
)

Validation Errors:

Array
(
)

Thank You for Contacting Target Darts.
Debug Data

    email
        12
            Result An email has been SENT successfully from (test)test@test.com to test@test.com
            Body
            First Name * 	Testing
            Last Name * 	Testing
            Email * 	test@test.com
            Product * 	Game Play
            Country * 	Barbados
            Registration Card Password * 	543543
            Purchase Date : 	
            Serial Number (if App) : 	5235235


            Submitted by 115.109.11.254
            Attachments array ( )
GreyHead 06 Mar, 2013
Hi piyush,

There is only output there from one Email and one Database Save; no sign of second ones.

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.
piyush@itdesignlab.com 06 Mar, 2013
After restoring this form you can see that the records are stored two times in the database as I mentioned earlier.
Please find the attachment of form backup.
GreyHead 06 Mar, 2013
Hi piyush,

It works OK here. Only one record saved and one email sent.

Do you have any kind of redirection happening on the site? Could the URL be hit twice?

Bob
This topic is locked and no more replies can be posted.