Skip Navigation

Open

Topic Tags: Compatibility

Overview of the issue

When configured to use AJAX submission, Avada forms are not sending emails in secondary languages. This happens due to a JavaScript error.

Workaround

  1. Please, be sure to make a full backup of your site before proceeding.
  2. Open the /wp-content/plugins/fusion-builder/inc/helpers/class-fusion-builder-form-helper.php file.
  3. Replace the following snippet (around line 232):
    // If form post exists.
    		if ( false !== get_post_status( $id ) ) {
    			$fusion_form = [
    				'id'           => $id,
    				'field_types'  => [],
    				'form_meta'    => self::fusion_form_get_form_meta( $id ),
    				'field_labels' => [],
    				'field_logics' => [],
    				'form_number'  => $id,
    				'text_config'  => [],
    			];
    		}
    

    With this:

    // If form post exists.
    		if ( false !== get_post_status( $id ) ) {
    			$id = apply_filters( 'wpml_object_id', $id, 'fusion_form' , TRUE  );
    			$fusion_form = [
    				'id'           => $id,
    				'field_types'  => [],
    				'form_meta'    => self::fusion_form_get_form_meta( $id ),
    				'field_labels' => [],
    				'field_logics' => [],
    				'form_number'  => $id,
    				'text_config'  => [],
    			];
    		}
    

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>