W
W
WebmasterOffice2021-10-11 11:47:49
WordPress
WebmasterOffice, 2021-10-11 11:47:49

Is it possible to add your own text to CF7?

Good afternoon!

I can’t figure out how to add a form header to the Contact form 7 plugin form submission letter, which I have loaded from the admin panel through the add. fields (ACF).

6163f9996daeb459554208.png

Заявка на покупку сухой смеси

Сообщение:
Имя: [retail-name]
Телефон: [retail-phone]
Кол-во мешков: [form-counter]
Почта: [retail-mail]
Город: [retail-city]
Комментарий: [retail-comment]


-- 
Это сообщение отправлено с сайта [_site_title] ([_site_url])


In the modal window with the form, the title is inserted in the following way:

onclick="$('.modal__header').html('<?php echo get_field('bag-title'); ?>')"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2021-10-11
@pro100taa

1. If you need to know from which page you filled out the form, then you can insert this [_url] into the body of the letter (see form settings)
2. If you need to insert dynamically changing data into the form, then there is an addition to Contact Form 7 - Contact Form 7-Dynamic Text Extension

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question