Title: Shortcode contribution
Last modified: August 31, 2016

---

# Shortcode contribution

 *  [myrandor](https://wordpress.org/support/users/myrandor/)
 * (@myrandor)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/shortcode-contribution/)
 * Hi,
 * I just created a ‘hidden’ shortcode on my installation of contact-form-7 in order
   to pass hidden field.
 * Is there a way to send it to you or to include it onto SVN in order for other
   user to be able to use that?
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

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

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/shortcode-contribution/#post-7326321)
 * I’m not going to add a form-tag for a hidden field to the plugin, but it would
   help other users if you publish your code somewhere.
 *  [syliclassic](https://wordpress.org/support/users/syliclassic/)
 * (@syliclassic)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/shortcode-contribution/#post-7326323)
 *  [ckone](https://wordpress.org/support/users/ckone/)
 * (@ckone)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/shortcode-contribution/#post-7326425)
 * I used to have my own shortcode for CF7. But when a major update would come my
   little addition would vanish and I had to reinsert again.
 * I even tried to insert my own shortcode within my function file but I thought
   I was making too much of something little.
 * So, since I do not need to use hidden fields in all of my contact forms I insert
   the following code only when I need it (for the simple stuff) at the very beginning
   of the form (or at the bottom before the submit button, wherever appropriate)
 *     ```
       <script>
       var thisYr = 2016;
       var nextYr = thisYr + 1;
       document.write('<input type="hidden" name="year" value="' + nextYr + '" />');
       </script>
       ```
   
 * and I just call this hidden field at my email form as [year]
 * I am using javascript because I am calculating few numbers that I needed. I suppose
   just entering HTML code will do just fine if you do not need to calculate.

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

The topic ‘Shortcode contribution’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [ckone](https://wordpress.org/support/users/ckone/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/shortcode-contribution/#post-7326425)
 * Status: not resolved