Title: Shortcode usage in &quot;Value&quot; fields
Last modified: August 22, 2016

---

# Shortcode usage in "Value" fields

 *  Resolved [jbergeson](https://wordpress.org/support/users/jbergeson/)
 * (@jbergeson)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/shortcode-usage-in-value-fields/)
 * Hi, great plugin. Well done, really smooths out my workflow.
 * On thing that I was wondering about was the ability to process shortcodes as 
   values in the form fields? Like URL params to auto fill with name, phone etc?
 * I am thinking I might be able to figure something out to make this work, but 
   I was wondering if you had any suggestions for making something like this work?
   Processing the text similarly to the way that the main content box processes 
   it?
 * In another use case, I wrote custom shortcodes that represent different dynamic
   pieces of information stored in a cookie in the users browser(advertising attribution/
   sales funnel info). I was manually entering those shortcodes into the “value”
   section of different inputs for salesforce forms, but I’d like to enter them 
   into your awesome plugin, as many sales people are now accustomed to seeing this
   data in Salesforce leads.
 * Thoughts?
 * [https://wordpress.org/plugins/salesforce-wordpress-to-lead/](https://wordpress.org/plugins/salesforce-wordpress-to-lead/)

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

 *  Thread Starter [jbergeson](https://wordpress.org/support/users/jbergeson/)
 * (@jbergeson)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/shortcode-usage-in-value-fields/#post-5349688)
 * Ah, looks like the shortcode API is what I was looking for.
 * I’m trying to track down the best place to implement do_shortcode() in the process
   of the form generation.
 * Can you recommend an easy way to implement the do_shortcode() function on the
   form input values?
 * Thanks again!
 *  Plugin Author [Nick Ciske](https://wordpress.org/support/users/nickciske/)
 * (@nickciske)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/shortcode-usage-in-value-fields/#post-5349706)
 * Shortcodes are a bit overkill for this (and may be a security risk as they can
   do far more than substitute text).
 * This would be best implemented as merge fields (as discussed in this [thread](https://wordpress.org/support/topic/other-dynamic-form-field-fillers-a-la-url)).
 * In addition adding way to specify a default value for a field using a get/post
   parameter to the field editor.
 * Both are planned features.
 * A workaround could be written using the built in filters, maybe. It might be 
   a bit hacky.

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

The topic ‘Shortcode usage in "Value" fields’ is closed to new replies.

 * ![](https://ps.w.org/salesforce-wordpress-to-lead/assets/icon-256x256.png?rev
   =2316786)
 * [Brilliant Web-to-Lead for Salesforce](https://wordpress.org/plugins/salesforce-wordpress-to-lead/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/salesforce-wordpress-to-lead/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/)
 * [Active Topics](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/salesforce-wordpress-to-lead/reviews/)

## Tags

 * [input](https://wordpress.org/support/topic-tag/input/)
 * [params](https://wordpress.org/support/topic-tag/params/)
 * [url](https://wordpress.org/support/topic-tag/url/)
 * [value](https://wordpress.org/support/topic-tag/value/)

 * 2 replies
 * 2 participants
 * Last reply from: [Nick Ciske](https://wordpress.org/support/users/nickciske/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/shortcode-usage-in-value-fields/#post-5349706)
 * Status: resolved