• Resolved enkelst

    (@enkelst)


    Hi Lap, for some reason I had to add the code in the Functions again, and although the code looks right, and the name field appears, the name won’t register in Mailchimp.

    See it here: https://bloggbar.no/

    Have I forgotten something in the code? It looks like this:

    add_action( 'mctb_before_email_field', function() {
        echo '<input type="text" name="*|FNAME|*" placeholder="Fornavn" />';
    });
    add_action( 'mctb_before_email_field', function() {
        echo '<input type="text" name="*|FNAME|*" placeholder="Fornavn" />';
    });
    
    add_filter( 'mctb_data', function( $vars ) {
        $vars['*|FNAME|*'] = ( isset( $_POST['*|FNAME|*'] ) ) ? sanitize_text_field( $_POST['*|FNAME|*'] ) : '';
        return $vars;
    });

    Thank you for any help.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Lap

    (@lapzor)

    Hi,

    Could you try with the *| and |* removed everywhere in the code?

    <input type="text" name="FNAME" ...

    And of course make sure the name of the field is actually FNAME.

    Hope that helps.

    Thread Starter enkelst

    (@enkelst)

    Thank yoooou. That helped ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Name field appears, but not in actual list’ is closed to new replies.