Support » Plugin: Contact Form 7 » [Plugin: Contact Form 7] tabindex doesn't work on select and submit

  • Resolved loru88


    I think I found a bug, I have created a new form and in every field I have defined a tabindex but when I have give a tabindex in the [submit ] it throws this php notice:

    Notice: Undefined index: options in /mypath/to/wordpress/wp-content/plugins/contact-form-7/modules/submit.php on line 14

    Notice: Undefined index: values in /mypath/to/wordpress/wp-content/plugins/contact-form-7/modules/submit.php on line 15

    and when I define a tabindex in the [select ] it show this notice:

    Notice: Undefined index: name in /mypath/to/wordpress/wp-content/plugins/contact-form-7/modules/select.php on line 16

    Notice: Undefined index: options in /mypath/to/wordpress/wp-content/plugins/contact-form-7/modules/select.php on line 17

    Notice: Undefined index: values in/mypath/to/wordpress/wp-content/plugins/contact-form-7/modules/select.php on line 18

    Notice: Undefined index: labels in /mypath/to/wordpress/wp-content/plugins/contact-form-7/modules/select.php on line 19

    the [text ] and [textarea ] works fine, it is happening also to someone else?

    PS: I also confirm that in wordpress 3.2.1 and contact form 7 2.4.6 the mails don’t arrives

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


    I don’t see such notices even when setting define('WP_DEBUG', true). How did you set the tags exactly?

    Sorry for the delay, me too I have WP_DEBUG on true

    I have done this form

    <label for="name">Nome</label>
        [text* id:name your-name tabindex:1]
    <label for="email">Email</label>
        [email* id:email your-email tabindex:2]
    <label for="subject">Oggetto</label>
        [select* id:subject menu-subject "Info generali" "Preventivo" tabindex:3]
    <p>Messagio<br />
        [textarea your-message 40x10 tabindex:4] </p>
    <p>[submit "Send" tabindex:5]</p>

    it show me totally 6 notice, 4 about select.php and the last 2 about submit.php
    and the html select tag isn’t printed, so the subject cannot be selectable

    Plugin Author Takayuki Miyoshi


    ok, the syntax is incorrect.

    Try changing it to this:

    <label for="name">Nome</label>
        [text* your-name id:name tabindex:1]
    <label for="email">Email</label>
        [email* your-email id:email tabindex:2]
    <label for="subject">Oggetto</label>
        [select* menu-subject tabindex:3 id:subject "Info generali" "Preventivo"]
    <p>Messagio<br />
        [textarea your-message 40x10 tabindex:4] </p>
    <p>[submit tabindex:5 "Send"]</p>

    The correct order is
    1. Type (text*, email*, …)
    2. Name (your-name, your-email)
    3. Options (id:name, tabindex:1, 40×10, …)
    4. Values (“Info generali” “Preventivo”, “Send”)

    ok thanks, now it work fine, but it isn’t well explained that there is an order to respect. the only problem now is the email never arrive to destination….

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Contact Form 7] tabindex doesn't work on select and submit’ is closed to new replies.