Track and store un submitted recrods of forms into database.

berde,jitendra 02 Apr, 2012
Hi All,
I am again back to forum with my new query and is something other also looking for.

I want to set functionality which will start once user start filling up a form. Basically I want to track and store data of user who do not submit form after filling up few of forms fields or change their mind to submit the form and go away without submit the enquiry.

Basically, if user fills few fields of form then while typing it his information will get added into the database if in case he didn’t submit the form. With this functionality we will get information which we might be loss in case user does not submit the form.

Any pre define utility available for chrono form. If yes then it would be good. If not can you let me know how I can implement this with my custom code.

Regards,
Jitendra Berde
GreyHead 02 Apr, 2012
Hi Jitendra Berde,

There's nothing in ChronoForms that will do this for you. The only answer I can think of is to Ajax enable every box in the form so that it is submitted when the input is entered.

Bob
berde,jitendra 12 Apr, 2012
Hi,

Thanks for your reply.

Do you have any example how do i apply this into my form. I tried to to user jquery but it affect on my validation code part.

Regards,
Jitendra.
GreyHead 12 Apr, 2012
Hi Jitendra,

I've never tried so really can't help. You can use JQuery provided that you make abaolutely certain that it is in noConflict mode; on Joomla! you are better using the MooTools library which is standard, that has a good AJAX capability.

Bob
berde,jitendra 12 Apr, 2012
Hi GreyHead,

I am trying my luck to get this live. I will let you know if i get any success on it.

Regards,
Jitendra
GreyHead 12 Apr, 2012
Hi Jitendra,

Good luck, let us know when you succeed.

Bob
berde,jitendra 12 Apr, 2012
Hi GreyHead,

Thanks for your wishes and support.

Right now, as per your suggestion i am applying Mootool code and placing this code at onload event. My problem is that i am unable to process data of input through Ajax post method. I tried out to find solution but still no success on it. Could you please take a look? It would be good if you have any solution. Right now default values are getting store as mentioned in "data". I am newbie for mootool. Please find the code below:

window.addEvent('domready', function() {
$('chronoform_form-test-Copy').getElements('input').addEvent('change', function() {
   var name = $('name').value;
   var email = $('email').value;
   var mobile = $('mobile').value;

var myRequest = new Request({url: 'http://abc.in/submit.php'});
 
myRequest.send({
    method: 'post',
    data: 'name=name&email=email&mobile=mobile'
});
});
});
This topic is locked and no more replies can be posted.