• I’m wondering how I could add an additional field for user to indicate their “Preferred Language.” Currently, I have the following:

    <p>Language Preference<br />
        [text your-language] </br>
    * Note: If you have an Indian language preference please enter it here. We may not have someone who who can communicate in it, but where possible we want to make communication easier for you.
    </p>

    I assumed the plain text field would be useful for this, and I assumed the “your-language” tag was not code but a tag to differentiate. But, when trying the form the information entered in this field did not get picked up. How do I do this properly? Thanks!

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

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

    (@takayukister)

    You want to see the actual language name in the mail content? You can do it just by adding [your-language] in the Message Body of the mail.

    See Getting Started with Contact Form 7

    Thread Starter Dave4876

    (@dave4876)

    Hum…I’m still missing something. Here’s the full code…

    <p>Your Name (required)<br />
        [text* your-name] </p>
    
    <p>Your Email (required)<br />
        [email* your-email] </p>
    
    <p>Subject<br />
        [text your-subject] </p>
    
    <p>Language Preference<br />
        [text your-language] </br>
    * Note: If you have an Indian language preference please enter it here. We may not have someone who who can communicate in it, but where possible we want to make communication easier for you.
    </p>
    
    <p>Your Message<br />
        [textarea your-message] </p>
    
    <p>Please prove you are human!</br>
          [captchac captcha-281]</br>
          [captchar captcha-281]</p>
    
    <p>[submit "Send"]</p>

    Now, this gives me a text box on screen for “Language Preference.” But, when after completing all fields and hitting send, I do not find the entry for the language preference in the sent email. What am I missing?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding new text fields’ is closed to new replies.