By: Robin Thebe Posted on: Wordpress Development Tips Dated: April 15, 2018

How to generate dynamic tag and input values for Contact Form 7

Contact Form 7 is one of my go to plugin, and I choose it most of time for my project.

It’s easy to customise in terms of look and feel, extendable and maintained quiet well. For me as WordPress Developer, this plugin works as charm.

Generating a hidden field with dynamic value in Contact Form 7

Here is a block of code I am sharing, which creates a random coupon code and adds as hidden field.

This code generates the [coupen_code] that can be used inside form generator and email replies, inside text or html format.

Add the block of code below in your functions.php file to see the magic.

wordpress web developer, web design sydney
Robin Thebe

I am wordpress developer and web designer based in sydney.

I focus on web design and creating custom wordpress development, optmised for SEO and Speed.

Related Post

Hire WordPress Developer

If you are looking for quality top notch WordPress Web Developer, look no further. I have strong attachment with all projects I have done, and can guarantee I have same love and feelings to your website as yourself. Because I believe that the project I deliver reflects me as WordPress Web Developer.

Get a Free Quote