We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Screen Reader accessibility for custom member fields

How Do I?

Natalie's avatar
Natalie
15 posts
6 years ago
Natalie's avatar Natalie

Hi, my site is geared towards blind users many using screen readers to access the website. On the registration page, I need to edit the custom member fields so I can add a title tag to each input field, but I’m not seeing how to do this. Tried adding alt/title tags with in the div of the field name (I’m super novice at this), but that didn’t work. Anyone have any ideas/know where I go to add this? Thanks.

       
Derek Jones's avatar
Derek Jones
7,561 posts
6 years ago
Derek Jones's avatar Derek Jones

Hi Natalie! To my knowledge, the most reliable way to support most screen readers is to use a <label> for each form field using the id= attributes to link them, e.g.:

<label for="favorite_color>Favorite Color</label>
<input type="text" id="favorite_color" name="favorite_color"></code></pre>

<p>I’m pretty sure JAWS will read title attribute <em>as well</em>, but to use them they need to go on the input tag itself:</p>

<pre><code><input type="text" id="favorite_color" name="favorite_color" title="Favorite Color">

Hope that helps!

       
Natalie's avatar
Natalie
15 posts
6 years ago
Natalie's avatar Natalie

Hi, my question is where do I go to ad that tag to the custom member fields? Specifically on the registration page, I see an area where EE cycles through the custom profile fields but on the template it just shows a field_name and field tag, but no actual html code, so I don’t know where to add it for it to show up.

       
Derek Jones's avatar
Derek Jones
7,561 posts
6 years ago
Derek Jones's avatar Derek Jones

Oh sorry, right. In the current member themes, you’d need to construct those inputs manually rather than use the {field} variable as a shortcut. Their name needs to be m_field_id_# where # is the field ID of your custom field. You can create those inputs however you need, instead of using the custom_field variable pair, which is there as a convenience.

       
Natalie's avatar
Natalie
15 posts
6 years ago
Natalie's avatar Natalie

ah got it, thanks so much.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.