Support » Plugins » Pass data from one field to another in CF7

Viewing 1 replies (of 1 total)
  • Hi wacdesign

    I’m in a similar situation. I’ve searched through the forums but can only find references to older versions of CF7. I applied some logic to playing with the js code but my alert kept showing NULL.

    Did you find a solution to your problem?

    For those reading I am looking for an updated solution that won’t reset the form before the on_sent_ok hook. The old solution was to change

    if (1 == data.mailSent) {
    		jQuery(data.into).find('form').resetForm().clearForm();
    		wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ok');
    
    		if (data.onSentOk)
    			jQuery.each(data.onSentOk, function(i, n) { eval(n) });
    	} else {

    to

    if (1 == data.mailSent) {
    		if (data.onSentOk)
    			jQuery.each(data.onSentOk, function(i, n) { eval(n) });
    
    		jQuery(data.into).find('form').resetForm().clearForm();
    		wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ok');
    	} else {
Viewing 1 replies (of 1 total)
  • The topic ‘Pass data from one field to another in CF7’ is closed to new replies.