Title: Inserting shortcodes into forms
Last modified: August 30, 2016

---

# Inserting shortcodes into forms

 *  [Amy B](https://wordpress.org/support/users/amyrbiddle/)
 * (@amyrbiddle)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/inserting-shortcodes-into-forms/)
 * I set up a PayPal form with hidden fields in order to collect user information
   on PayPal and cross-reference what users had paid for a specific item.
 * After the most recent updates, the shortcodes I used stopped working within the
   form. Now, the information saved is actually the text of the shortcode, not the
   output of the shortcode information.
 * An example of the form code looks like this:
    <input name=”os0″ value=”[wpv-current-
   user]”>
 * This used to collect the username, but since the update, the information it collects
   is the text “[wpv-current-user]” even though, when outside the form, the shortcode
   works just fine and will display the username.
 * Any suggestions?

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

 *  [Craig Ralston](https://wordpress.org/support/users/craig-ralston/)
 * (@craig-ralston)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/inserting-shortcodes-into-forms/#post-6409195)
 * This is likely related to the recent change to the Shortcode API which you can
   read about [here](https://make.wordpress.org/core/2015/07/23/changes-to-the-shortcode-api/).
   The workaround, in your case, would be to update your shortcode to include the`
   value=""` and change your input field to something like
    `<input name="os0" [
   wpv-current-user]>`
 *  Thread Starter [Amy B](https://wordpress.org/support/users/amyrbiddle/)
 * (@amyrbiddle)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/inserting-shortcodes-into-forms/#post-6409247)
 * Thanks for the response. Unfortunately, this shortcode is generated by a plugin
   and I use it widely, so I absolutely cannot change the output. However, I suppose
   I could create a NEW shortcode that would output {value=”[wpv-current-user]”}…
   or would that still output the way it reads now, and just layer the problem without
   solving it?

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

The topic ‘Inserting shortcodes into forms’ is closed to new replies.

## Tags

 * [form](https://wordpress.org/support/topic-tag/form/)
 * [paypal](https://wordpress.org/support/topic-tag/paypal/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Amy B](https://wordpress.org/support/users/amyrbiddle/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/inserting-shortcodes-into-forms/#post-6409247)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
