Support » Plugins and Hacks » Values for drop downs

Values for drop downs

  • I’m creating a contact form and I’d like to add data values for the options presented in the drop down. For example the person completing the form would see “Option 1”, “Option 2”, and “Option 3” but the actual data values being sent in the form would be “Data 1”, “Data 2”, and “Data 3”. Is this possible with CF7?

    Thanks in advance.

    Scott Jay

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Takayuki Miyoshi


    Yes. You can do it by utilizing the pipe feature.


    Like this
    [select menu-123 "Option 1|Data 1" "Option 2|Data 2" "Option 3|Data 3"]

    Yay! Thanks!

    Now, can I get a variable from a page to be used in a contact form?

    I’m setting up a form to text driving directions for several Inns to a visitor’s cell phone. Each Inn will have a profile page and (obviously) different driving directions. I’d like to set a custom variable within each page with the URL to the page for driving directions that can be sent in the body of the message.

    Is this possible?

    Plugin Author Takayuki Miyoshi


    Looks like it will work, but…

    I have a custom field on my page called “d-url” and it has a URL as a value. When I put the following shortcode into my contact form the value from the custom field does get put into the form. However, the form does not get sent.

    [dynamictext url “CF7_get_custom_field key=’d-url'”]

    I have [url] in the body of the message.

    The form does get sent without the shortcode.

    Thanks. The help is much appreciated!

    I guess my cell phone carrier does not like tinyurl addresses in text messages. I got it to work. It was not a problem with your plugin at all!


Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Values for drop downs’ is closed to new replies.