WordPress.org

Forums

Contact Form 7
Dropdown item values doesn't work using pipes (5 posts)

  1. danicasati
    Member
    Posted 2 years ago #

    Hi.
    I'm using a dropdown with pipes in order to set specific value to any item in the list.
    But generated HTML doesn't set my custom value, so item value is the same that item title.

    For example, I use in Contact Form SELECT tag:
    "My Value"|my-value

    Generated HTML is:
    <option value="My Value">My Value</option>

    How can I fix this issue?

    https://wordpress.org/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

    It's a normal output. See Selectable Recipient with Pipes.

  3. danicasati
    Member
    Posted 2 years ago #

    Thank you for response, I saw this article and I followed the instructions, but I get described error.

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

    You get no error. Check the email output.

  5. danicasati
    Member
    Posted 2 years ago #

    In mail output is correct, but if I use pipes, values doesn't change VALUE property in every <option> inside <SELECT> tag.
    It would be useful to work with data inside a form.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.