WordPress.org

Forums

Contact Form 7
[resolved] tabindex doesn't work on select and submit (5 posts)

  1. loru88
    Member
    Posted 4 years ago #

    Hi
    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

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 4 years ago #

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

  3. loru88
    Member
    Posted 4 years ago #

    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

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 4 years ago #

    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, 40x10, ...)
    4. Values ("Info generali" "Preventivo", "Send")

    http://contactform7.com/blog/2009/11/18/text-fields/

  5. loru88
    Member
    Posted 4 years ago #

    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....

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