Duplicate DB records

Post any questions you may have here

Duplicate DB records

Postby ljk on Thu May 22, 2008 7:07 pm

Hello,

I am using chronoforms 2.3.8 on a Joomla 1.0.14 site.

I have a signup form, and have enabled the db table. When someone signs up, we are getting 2 records in the database for the each person's signup.

When the "On Submit code - before sending email:" was not working (<script> tags were missing), we were only getting one record for each user in the db.

In the "On Submit code - before sending email:" we have the following code:
Code: Select all
<script language="JavaScript" type="text/javascript">
new Validation(this);

function formCallback(result, form) {
    window.status = "validation callback for form '" + form.id + "': result = " + result;
}
var valid = new Validation('signup', {immediate : true, onFormValidate : formCallback});
</script>


I don't know why that should be causing duplicate records.

Any ideas?

Thanks.
ljk
Fresh Boarder
 
Posts: 1
Joined: Wed Feb 27, 2008 9:09 pm

Re:Duplicate DB records

Postby GreyHead on Thu May 22, 2008 9:37 pm

Hi ljk,

JavaScript goes in the Form JavaScript box (without the script tags). The OnSubmit after box if for processing the results after submission, you can probably leave it empty.

Oh, and it's easier to use the built in Validation.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3251
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany


Return to Questions & Answers

Who is online

Users browsing this forum: Google [Bot] and 4 guests