Title: Accessibility needs ONKEYPRESS handler
Last modified: September 16, 2016

---

# Accessibility needs ONKEYPRESS handler

 *  [Matthew Welch](https://wordpress.org/support/users/matthew-welch/)
 * (@matthew-welch)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/accessibility-needs-onkeypress-handler/)
 * Really like your contact form plugin. But when I run a Compliance/Accessibility
   checker (SortSite Standard) on my site it has an issue with the code supplied
   by your short code. Specifically it states: All ONCLICK handlers should have 
   an equivalent ONKEYPRESS handler.
 * The code that is highlighted is:
    ⌊Refresh Image⌉
 * Would it be possible to add an onpress handler into this?
 * Thanks in advance, Matt
    -  This topic was modified 9 years, 6 months ago by [Matthew Welch](https://wordpress.org/support/users/matthew-welch/).

Viewing 15 replies - 1 through 15 (of 15 total)

 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/accessibility-needs-onkeypress-handler/#post-8191939)
 * Hi, thank you for your findings and sharing this with us. The plugin developer
   will investigate further your suggestion.
 * Kind regards
 *  Thread Starter [Matthew Welch](https://wordpress.org/support/users/matthew-welch/)
 * (@matthew-welch)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/accessibility-needs-onkeypress-handler/#post-8192033)
 * Thanks. I also got a “This LABEL refers to a non-existent control.”
 * “This happens when the FOR attribute doesn’t exactly match a control ID, or targets
   a control NAME instead of a control ID.”
 * <label style=”text-align:left;” for=”fscf_field3_4″>Please select the presentation
   you are interested in. You may select more than one.<span style=”text-align:left;”
   >*</span></label>
 * Does this mean there is no field “fscf_field3_4” that the label is referring 
   to? Is this something we could have messed up creating the form? If, so how can
   it be fixed?
 * Thanks again.
 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/accessibility-needs-onkeypress-handler/#post-8192107)
 * Hi, can you share the URL with the contact form?
 *  Thread Starter [Matthew Welch](https://wordpress.org/support/users/matthew-welch/)
 * (@matthew-welch)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/accessibility-needs-onkeypress-handler/#post-8192115)
 * [http://ehsdhicap.govassist.org/community-education/request-a-presentation/](http://ehsdhicap.govassist.org/community-education/request-a-presentation/)
 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/accessibility-needs-onkeypress-handler/#post-8192159)
 * The field that is causing this issue in your case is the following.
 * **Please select the presentation you are interested in. You may select more than
   one.\***
 * How did you add the above sentence? Can you also provide a screen capture.
 * Thank you
 *  Thread Starter [Matthew Welch](https://wordpress.org/support/users/matthew-welch/)
 * (@matthew-welch)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/accessibility-needs-onkeypress-handler/#post-8192192)
 * I will be able to contact the person who created the form next week. Not sure
   how to provide screen capture since I don’t see attachments here or ability to
   paste an image. But it would be the same as what you see from the url. (unless
   you are asking for something else).
 * Thanks
 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/accessibility-needs-onkeypress-handler/#post-8192292)
 * Hi, go to **Plugins -> FS Contact Form -> Fields**. How was the sentenced I mentioned
   above added in the **Fields** tab?
 * Thank you
 *  Thread Starter [Matthew Welch](https://wordpress.org/support/users/matthew-welch/)
 * (@matthew-welch)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/accessibility-needs-onkeypress-handler/#post-8198838)
 * From our person who did the edits
    “Ok, now I see what I did. That wasn’t one
   of the default fields, so I clicked the blue button on the right of the Fields
   tab that says Add New Field. Then it makes you type in the name you want for 
   that field, so I put that sentence in as the field name.”
 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/accessibility-needs-onkeypress-handler/#post-8200063)
 * Okay, then it makes sense your current issue. Please remove that field and your
   issue will be resolved. If that fixes your issue can you mark this support thread
   as resolved.
 * Thank you
 *  Thread Starter [Matthew Welch](https://wordpress.org/support/users/matthew-welch/)
 * (@matthew-welch)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/accessibility-needs-onkeypress-handler/#post-8200169)
 * Well, there is a need for that text to be displayed near the checkboxs. We are
   very new to your product. What is the proper way to do it?
    Thanks
 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/accessibility-needs-onkeypress-handler/#post-8200251)
 * Hi, yes I understand what you mean. When you add a new field it has two extra
   areas for you to add some text or HTML.
    1. HTML before form field:
    2. HTML after form field:
 * Use one of the above to add the text you mentioned.
 * Kind regards
    -  This reply was modified 9 years, 6 months ago by [mbrsolution](https://wordpress.org/support/users/mbrsolution/).
 *  Thread Starter [Matthew Welch](https://wordpress.org/support/users/matthew-welch/)
 * (@matthew-welch)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/accessibility-needs-onkeypress-handler/#post-8204047)
 * Are you saying that the use of Field Type: checkbox-multiple should be avoided
   in the case? That I should remove that field and add separate new fields, one
   for each checkbox? And then for the first one add text in the HTML before form
   field:?
 * Hope this makes sense.
 * Also, this would be very much different from the original start of this thread.
   The accessibility checker wants an ONKEYPRESS handler whenever there is and ONCLICK
   event.
 * Thank you.
 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/accessibility-needs-onkeypress-handler/#post-8204086)
 * Hi, I am not really sure how to answer your question any further. The plugin 
   developer will investigate further your issue.
 * Kind regards
 *  Thread Starter [Matthew Welch](https://wordpress.org/support/users/matthew-welch/)
 * (@matthew-welch)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/accessibility-needs-onkeypress-handler/#post-8336631)
 * Any update on this?
 *  [Michael J Challis](https://wordpress.org/support/users/mikechallis/)
 * (@mikechallis)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/accessibility-needs-onkeypress-handler/#post-8342651)
 * **Adding both onclick AND onkeypress is really not needed:**
    [https://www.w3.org/TR/WCAG20-TECHS/SCR20.html](https://www.w3.org/TR/WCAG20-TECHS/SCR20.html)
 * Although onclick is in principle a mouse event handler, most HTML and XHTML user
   agents also process this event when a native HTML control (e.g. a button or a
   link) is activated, regardless of whether it was activated with the mouse or 
   the keyboard. In practice, therefore, it is not necessary to duplicate this event
   when adding handlers to natively focusable HTML elements.

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Accessibility needs ONKEYPRESS handler’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/si-contact-form_dde2be.svg)
 * [Fast Secure Contact Form](https://wordpress.org/plugins/si-contact-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/si-contact-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/si-contact-form/)
 * [Active Topics](https://wordpress.org/support/plugin/si-contact-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/si-contact-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/si-contact-form/reviews/)

 * 15 replies
 * 3 participants
 * Last reply from: [Michael J Challis](https://wordpress.org/support/users/mikechallis/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/accessibility-needs-onkeypress-handler/#post-8342651)
 * Status: not resolved