• Resolved Nadav Levi

    (@123nadav)


    Hello Jordi, how are you?

    I have a couple of things I’d like to discuss with you. Maybe they’re already possible in the plugin and I just don’t know about them.

    The first thing is a client approval checkbox. For example, in Contact Form 7 you can add a consent checkbox for the client to approve your privacy policy, which is important for GDPR and CCPA compliance.

    Is this already possible in your plugin?

    Another feature that could be useful is including information about where the form was submitted from.

    In Contact Form 7, you can include details in the email notification about which page the form was submitted from. This helps me understand which pages are performing better and converting more visitors. It can also include additional information such as the client’s IP address and the device they used to submit the form.

    If it’s possible to add something like this to your plugin, I think it would be very helpful.

    The last thing is the email design.

    In Contact Form 7, you can customize the layout of the email notification that is sent when someone submits a form. This is important, especially when building websites for clients, because they see these emails every day and they look much more professional.

    For example, when I receive a contact form submission, the email includes my logo at the top, followed by the client’s information. At the bottom, it shows the page the form was submitted from, the client’s device, and their IP address, followed by the website’s signature or branding.

    It creates a stronger brand identity, and clients really love it.

    I think it would be helpful if you added a section for this directly in the plugin dashboard (not in the Gutenberg block, I mean in the plugin settings).

    That way, there could be a global interface where we can manage the email template for all the forms already installed on the website.

    What do you think?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hello again @123nadav! Good timing! 😜 All three are in version 1.0.9, releasing now!

    Consent checkbox. There’s a new Consent setting, and once enabled, a required checkbox appears under the message field. You write the text yourself, and it accepts a link, so you can do “I agree to the privacy policy” with the last two words pointing at your policy page. The visitor can’t send the form without ticking it, and that’s verified server-side too, so it can’t be skipped. The email you receive records the date and the exact wording that was approved, which is the part that actually matters if you ever need to prove consent was given.

    Submission details. The email template now supports placeholders. Drop the ones you want into your template and they get filled in. The page the form was sent from is detected from the page itself rather than the browser referrer, so it stays correct even with a caching plugin or when the visitor’s browser hides the referrer.

    One note on IP and device: those are personal data under GDPR, so they’re only collected if your template actually uses them. If you do use them, make sure your privacy policy mentions it! 😋

    Email design. There’s a new E-mails section in the settings, exactly where you suggested, in the plugin dashboard rather than the block. It has a Subject, a Content, and an HTML switch. It’s global, so it applies to every form on the site, including ones already in your pages. Leave the fields empty and you keep the current plain emails.

    I didn’t add a visual drag-and-drop designer. That kind of thing turns a small plugin into a heavy one, and this plugin exists precisely because I didn’t want that. You write the HTML yourself, which takes five minutes and gives you more control than a builder would. Here’s a template close to what you described, with your logo at the top, the details in the middle, and your branding at the bottom.

    Placeholders you can use:

    *name* *email* *message* *site*
    *page_url* *page_title* *referrer* *date*
    *ip* *user_agent*
    *phone* (when the Phone field is enabled)
    *consent* (when the Consent checkbox is enabled)

    Template:

    <div style="font-family: sans-serif; max-width: 600px;">
    <img src="https://yoursite.com/logo.png" width="180" alt="">
    <h2>New message from *name*</h2>
    <p>
    <b>Email:</b> *email*<br>
    <b>Sent from:</b> <a href="*page_url*">*page_title*</a><br>
    <b>Date:</b> *date*
    </p>
    <p>*message*</p>
    <hr>
    <p style="color: #888; font-size: 12px;">
    *consent*<br>
    Sent from *site*
    </p>
    </div>

    Turn the HTML switch on when you use a template like this one. Anything the visitor typed is escaped for you, so a message containing HTML arrives as text instead of breaking your layout.

    If you would rather do all of this in code, the same things are available as filters, and there is an api.txt in the plugin folder listing them.

    Enjoy it 😊
    Jordy.

    Thread Starter Nadav Levi

    (@123nadav)

    i see it now, you are amazing bro, haha really you the best plugins developer i ever seen, everything i asked from you, is suddenly created haha its insane really. man you are something special, really 🙂

    Plugin Author Jordy Meow

    (@tigroumeow)

    Haha, you’re very welcome @123nadav! 😊 It’s always been my pleasure to make my plugins as good as they can be and reply super fast (I know how frustrating it is when you try to reach a dev and they never respond, or worse, some random person replies who doesn’t know much). So yeah, I try to treat my users well! Also, it’s the holidays so things are a bit quieter than usual. Don’t hesitate to leave a little review by the way, I loooooove them 🥰

    Thread Starter Nadav Levi

    (@123nadav)

    I do you a review now, but something new i notice.

    the block of the contact form show error in the dev console inside the page editor with warning (404 error and multiple warning)

    404 :: /wp-content/plugins/contact-form-block/blocks/dist/index.js?ver=1.0.9

    screenshot:

    https://ibb.co/bjcH6xMr

    Plugin Author Jordy Meow

    (@tigroumeow)

    Good catch! 😆It had been slipping through for years, actually. So 1.0.9 went out without the block script and the editor could not load the block. It is fixed in 1.0.10, which is out now. Update and the 404 and the warnings will be gone. Thanks again for catching this!

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.