• aleterracciano

    (@aleterracciano)


    Good morning, I created a form with contact form 7 connected to Brevo. I mapped the fields by adding "your-" in front of the attributes I copied from my brevi account, I correctly connected the API to contact form 7, I added the "consent_for:sendinblue" tag for accepting privacy but in the brevi list , I see nothing.
    I did some tests by deactivating all the plugins and using the default wordpress theme, it still doesn't work. I contacted Brevo and they told me there's nothing they can do.
    Can you help me?

    Below is my module configuration:


    [select your-corso "Corso di Formazione sul Tachigrafo 4.1" "Corso di Aggiornamento Tachigrafo Analogico" "Corso di Formazione sul Corretto Utilizzo del Cronotachigrafo"]

    [text* your-ragione_sociale placeholder "Ragione Sociale*"]

    [number your-codice_cliente placeholder "Codice Cliente*"]

    [email your-email placeholder "Email*"]

    [tel your-whatsapp placeholder "Recapito Telefonico Mobile / WHATSAPP"]

    Carta D'identità

    [file cartid-131 filetypes:jpg|jpeg|pdf|webp|png|]

    Carta Officina

    [file cartoff-132 filetypes:jpg|jpeg|pdf|webp|png|]

    [acceptance consent_for consent_for:sendinblue]Accetta la clausola sul trattamento dei dati personali *[/acceptance]

    [submit "Invia"]

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter aleterracciano

    (@aleterracciano)

    Sono riuscito ad importare un contatto, una nuova email non presente nel database, ma non funziona sempre. Ho pensato di passare a True il paramentro ” Update existing contact” ma non funziona cmq.
    Non so cosa tentare.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter aleterracciano

    (@aleterracciano)

    I understood why it doesn’t work, the telephone field wants the international docie in front of the number. Example: +39

    How do I automatically add the +39 prefix in front of the telephone number that the customer will add?

    Thread Starter aleterracciano

    (@aleterracciano)

    Ho risolto, aggiungo la soluzione per aiutari altri utenti.

    Aggiungi il campo al modulo Contact Form 7:

    • Assicurati che il campo abbia un ID univoco, ad esempio:htmlCopia codice[tel* your-whatsapp id:whatsapp-field]

    Aggiungi lo script al file functions.php del tuo tema:

    • Apri il file functions.php del tuo tema (preferibilmente un tema child per evitare la perdita di modifiche durante gli aggiornamenti del tema).
    • Aggiungi il seguente codice per includere il tuo script JavaScript:phpCopia codicefunction add_custom_scripts() { ?> <script> document.addEventListener('DOMContentLoaded', function() { var phoneField = document.getElementById('whatsapp-field'); if (phoneField) { phoneField.addEventListener('input', function() { if (!phoneField.value.startsWith('+39')) { phoneField.value = '+39' + phoneField.value.replace(/^\+39/, ''); } }); // Pre-fill the field if empty if (phoneField.value === '') { phoneField.value = '+39'; } } }); </script> <?php } add_action('wp_footer', 'add_custom_scripts');

    Salva le modifiche e verifica:

    • Salva le modifiche al file functions.php.
    • Ricarica la tua pagina contenente il modulo di contatto per vedere se lo script funziona correttamente.
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.