Title: A Shortcode from a form?
Last modified: October 9, 2019

---

# A Shortcode from a form?

 *  Resolved [seank123](https://wordpress.org/support/users/seank123/)
 * (@seank123)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/a-shortcode-from-a-form/)
 * Is there a form plugin that will let me generate a shortcode?
 * For example:
 * I need a shortcode like this: [shortcode year=”xxxx” league=”yyyy” division=”
   zzzz”]
 * So I need a dropdown to select the Year, League and Division which would then
   generate and display the shortcode.
 * Is this possible with a form?
    -  This topic was modified 6 years, 8 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
    -  This topic was modified 6 years, 8 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not a Developing with WordPress
      topic

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

 *  [Davood Denavi](https://wordpress.org/support/users/binarywc/)
 * (@binarywc)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/a-shortcode-from-a-form/#post-12012981)
 * Are you trying to have the page forward based on the options selected? If so,
   you can do this with Gravity Forms [https://www.gravityforms.com/](https://www.gravityforms.com/)
   or WP Forms [https://wpforms.com/](https://wpforms.com/).
 * Hope this helps. Once you find a solution please tag the thread as resolved.
 *  Thread Starter [seank123](https://wordpress.org/support/users/seank123/)
 * (@seank123)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/a-shortcode-from-a-form/#post-12072768)
 * [@binarywc](https://wordpress.org/support/users/binarywc/) thanks – but what 
   I’m looking to do is embed a shortcode in a page but have it generated from a
   couple of dropdowns so I’m thinking it would more likely work better with PHP
   in the page but I’ll have a look at your suggestions
 *  [Davood Denavi](https://wordpress.org/support/users/binarywc/)
 * (@binarywc)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/a-shortcode-from-a-form/#post-12074152)
 * Unless I am missing something what you are trying to do can be done using conditional
   logic which gravity forms offers. I would suggest looking closer at what the 
   full feature set of Gravity Forms before writing custom code.
 *  Thread Starter [seank123](https://wordpress.org/support/users/seank123/)
 * (@seank123)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/a-shortcode-from-a-form/#post-12083017)
 * [@binarywc](https://wordpress.org/support/users/binarywc/) thanks for the replies
   and suggestions.
 * I’ve had a look at doing it with PHP and have managed to get it working!

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

The topic ‘A Shortcode from a form?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [seank123](https://wordpress.org/support/users/seank123/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/a-shortcode-from-a-form/#post-12083017)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
