VS Contact Form

Description

About

With this lightweight plugin you can create a contact form.

To display your form you can use a block, a shortcode or a widget.

Form contains fields for Name, Email, Subject and Message. Also included are a sum field (to avoid abuse) and a privacy consent checkbox.

You can customize your form via the settings page or by adding attributes to the block, the shortcode or the widget.

It’s also possible to display form submissions in your dashboard.

How to use

After installation add the VS Contact Form block or the shortcode [contact] to a page to display your form.

You can also go to Appearance > Widgets and use the VS Contact Form widget.

Settings page

You can customize your form via the settings page. This page is located at Settings > VS Contact Form.

Settings and labels can be overridden when using the relevant attributes below.

This can be useful when having multiple contact forms on your website.

Attributes

You can also customize your form by adding attributes to the block, the shortcode or the widget. Attributes will override the settings page.

Misc:

  • Add custom CSS class to form: class="your-class-here"
  • Change email address for sending: email_to="your-email-here"
  • Send to multiple email addresses (max 5): email_to="first-email-here, second-email-here"
  • Change “From” email header: from_header="your-email-here"
  • Change subject in email: subject="your subject here"
  • Change subject in auto-reply email to sender: subject_auto_reply="your subject here"

Field labels:

  • Name: label_name="your label here"
  • Email: label_email="your label here"
  • Subject: label_subject="your label here"
  • Message: label_message="your label here"
  • Privacy consent: label_privacy="your label here"
  • Submit: label_submit="your label here"

Field placeholders:

  • Name: placeholder_name="your placeholder here"
  • Email: placeholder_email="your placeholder here"
  • Subject: placeholder_subject="your placeholder here"
  • Message: placeholder_message="your placeholder here"

Field error labels:

  • Name: error_name="your label here"
  • Email: error_email="your label here"
  • Subject: error_subject="your label here"
  • Sum: error_sum="your label here"
  • Message: error_message="your label here"
  • Message – when links are not allowed: error_message_has_links="your label here"
  • Message – when email addresses are not allowed: error_message_has_email="your label here"
  • Banned words: error_banned_words="your label here"
  • Privacy consent: error_privacy="your label here"

Messages:

  • Displayed when sending succeeds: thank_you_message="your message here"
  • Displayed in the auto-reply email to sender: auto_reply_message="your message here"

Example: [contact email_to="your-email-here" subject="your subject here" label_submit="your label here"]

When using the block or the widget, don’t add the main shortcode tag or the brackets.

Example: email_to="your-email-here" subject="your subject here" label_submit="your label here"

Display form submissions in dashboard

Via the settings page you can activate form submissions being displayed in your dashboard.

After activation go to menu item “Submissions”. Your form submissions will be listed here.

SMTP

SMTP (Simple Mail Transfer Protocol) is an internet standard for sending emails.

WordPress supports the PHP mail() function by default, but when using SMTP there’s less chance your form submissions are being marked as spam.

You must install an additional plugin for this, such as WP mail SMTP.

Cache

If you’re using a caching plugin and want to avoid conflicts with the contact form, I recommend excluding your contact page from caching. This can be done via the settings page of most caching plugins.

Have a question?

Please take a look at the FAQ section.

Translation

Translations are not included, but the plugin supports WordPress language packs.

More translations are very welcome!

The translation folder inside this plugin is redundant, but kept for reference.

Credits

Without the WordPress codex and help from the WordPress community I was not able to develop this plugin, so: thank you!

Enjoy!

Screenshots

  • Shortcode form (GeneratePress theme)
  • Shortcode form (GeneratePress theme)
  • Widget form (GeneratePress theme)
  • Widget (dashboard)
  • Settings page (dashboard)
  • Settings page (dashboard)
  • Settings page (dashboard)
  • Settings page (dashboard)
  • Settings page (dashboard)
  • Form submissions page (dashboard)

Blocks

This plugin provides 1 block.

  • VS Contact Form

FAQ

About the FAQ

The FAQ are updated regularly to include support for newly added or changed plugin features.

How do I set plugin language?

The plugin will use the website language, set in Settings > General.

If translations are not available in the selected language, English will be used.

What is the default email address?

By default form submissions will be send to the email address set in Settings > General.

You can change this via the settings page or by using an attribute.

Why is the “from” email address not from sender?

I have used a default “From” email header to avoid form submissions being marked as spam.

Best practice is using a “From” email header (an email address) that ends with your website domain.

The default “From” email header starts with “wordpress” and ends with your website domain.

You can change this by using an attribute.

Your reply to sender will use another email header, called “Reply-To”, which is the email address that sender has filled in.

Can I display multiple forms on the same page?

Do not add multiple blocks, shortcodes or widgets to the same page. This might cause a conflict.

But you can display a form by using the block or the shortcode and a form by using the widget.

Can I add extra fields to form?

If you want extra fields you should use another contact form plugin, such as WPForms.

Why does form submission fail?

An error message is displayed if plugin was unable to send form.

Your hosting provider might have disabled the mail function of your server. Please contact them for info.

If they advice you to install a SMTP plugin, please check the “SMTP” section above.

If you are using a SMTP plugin, check the settings page of that plugin for mistakes. With most SMTP plugins it’s possible to test the mail function by sending a test mail.

Form submission can also fail due to validation of an anti-spam feature. You can activate debugging via the settings page.

Why do I not receive form submissions?

  • Check the junk/spam folder of your mailbox
  • If you are using attributes, check your attributes for mistakes
  • Check the settings page for disabled email sending or a wrong email address
  • If you are using a SMTP plugin, check the settings page of that plugin for mistakes
  • With most SMTP plugins it’s possible to test the mail function by sending a test mail
  • Install another contact form plugin to determine whether it’s caused by VS Contact Form or not

Does this plugin have anti-spam features?

Of course, the default WordPress validating, sanitizing and escaping functions are included.

Also included are a sum field, hidden honeypot fields and a hidden time trap.

And you can limit the number of links and email addresses that is allowed in Message field.

Does this plugin meet the conditions of the GDPR?

The General Data Protection Regulation (GDPR) is a regulation in EU law on data protection and privacy for all individuals within the European Union.

I did my best to meet the conditions of the GDPR:

  • Form contains a privacy consent checkbox
  • You can disable collection of IP address
  • Form submissions are safely stored in database, similar to how the default posts and pages are stored
  • You can easily delete form submissions

Why is there no semantic versioning?

The version number won’t give you info about the type of update (major, minor, patch). You should check the changelog to see whether or not the update is a major or minor one.

How can I make a donation?

You like my plugin and want to make a donation? There’s a PayPal donate link at my website. Thank you!

Other questions or comments?

Please open a topic in the WordPress.org support forum for this plugin.

Reviews

19 красавіка, 2024
I needed a simple form plugin that didn’t come with all the bells and whistles like most of the others. This does what I need. Thanks!
18 лютага, 2024 2 replies
I had a problem with spam lately after years of not getting any really, which in itself is a great result already. I already liked the plugin for its simplicity and clean look, but after experiencing how Guido addressed my questions when we did got spam, I can only say this man is a true caring professional. You feel his intention is to try to make his extension better, being very informative with consistent communication along the way. I wish everyone was like him, would make everything much more fluent. This review is well deserved, It’s not many times i write an unasked review, but I feld this time it wouldnt be fair if I didnt. Thanks a lot Guido, again.
12 жніўня, 2023
Simple to use, activate, drop [contact] in a page. Done Looks good, works good. Period, what more do you want?
28 лістапада, 2022
… is this plugin when they are looking for contact forms. There are some many contact form plugins with drag and drop building stuff really nobody uses. This plugin is really simple and perfect for my use! Also this plugin does not contact any external servers. Perfect!
23 ліпеня, 2022
So happy to find this plugin. Using since ever Contact form 7. But is no more SEO friendly. The support is so fast and efficient. And the installation in Wordpress so easy. So Thanks Guido for your great plugin!!!
Read all 49 reviews

Contributors & Developers

“VS Contact Form” is open source software. The following people have contributed to this plugin.

Contributors

“VS Contact Form” has been translated into 22 locales. Thank you to the translators for their contributions.

Translate “VS Contact Form” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

Version 15.9

  • New: you can add max 5 email addresses for sending via the settings page, instead of using the attribute

Version 15.8

  • New: VS Contact Form block
  • Block editor users can now replace their shortcode block with the VS Contact Form block

Version 15.7

  • Fix: “From” email header

Version 15.6

  • Fix: replaced parse_url() with wp_parse_url()

Version 15.5

  • Replaced most of the $_SERVER instances with default WP function
  • This will fix an undefined array key warning (in some cases)

Version 15.4

  • Improved validation

Version 15.3

  • Fix: thank you message

Version 15.2

  • New: thank you message supports line breaks
  • Minor changes in code

Version 15.1

  • Fix: validation
  • Minor changes in code

Version 15.0

  • Improved validation
  • Minor changes in code

For all versions please check file changelog.