Title: Using shortcodes in input type text fields
Last modified: February 7, 2017

---

# Using shortcodes in input type text fields

 *  Resolved [knion](https://wordpress.org/support/users/knion/)
 * (@knion)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/using-shortcodes-in-input-type-text-fields/)
 * Hi,
    It is possible to use shortcodes as value in input fields ? I tried but 
   is not working.

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

 *  Plugin Author [bgermann](https://wordpress.org/support/users/bgermann/)
 * (@bgermann)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/using-shortcodes-in-input-type-text-fields/#post-8751167)
 * I do not think so. What are you trying to achieve? Maybe there is a different
   way.
 *  Thread Starter [knion](https://wordpress.org/support/users/knion/)
 * (@knion)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/using-shortcodes-in-input-type-text-fields/#post-8784748)
 * I want to get a phone number of the logged in user. I saw that there are some
   predefined variables like {CurUserName}, can I define some custom ones ?
 *  Plugin Author [bgermann](https://wordpress.org/support/users/bgermann/)
 * (@bgermann)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/using-shortcodes-in-input-type-text-fields/#post-8866739)
 * No you cannot up to now, but maybe there will be a way in the future. Please 
   also see [https://wordpress.org/support/topic/own-variables](https://wordpress.org/support/topic/own-variables).
 *  [robanna](https://wordpress.org/support/users/robanna/)
 * (@robanna)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/using-shortcodes-in-input-type-text-fields/#post-8890701)
 * I think this may be what I’m look for also.
 * I’d like to put a shortcode for another plugin into a field.
 * In my case it would be [catlist id=10] which would list all posts in a given 
   category. Put that list in a select box or radio buttons. That might be a tall
   ask.

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

The topic ‘Using shortcodes in input type text fields’ is closed to new replies.

 * ![](https://ps.w.org/cforms2/assets/icon-128x128.png?rev=1010031)
 * [cformsII](https://wordpress.org/plugins/cforms2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cforms2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cforms2/)
 * [Active Topics](https://wordpress.org/support/plugin/cforms2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cforms2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cforms2/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [robanna](https://wordpress.org/support/users/robanna/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/using-shortcodes-in-input-type-text-fields/#post-8890701)
 * Status: resolved