View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
20487Bug reportsAccessibilitypublic2026-04-14 08:57
Reporterbuhtz Assigned To 
PrioritynoneSeverityfeature 
Status newResolutionopen 
Summary20487: Format of "Non-numerical answer option prefix" not specified to users
Description

Hello,
in the personal accounts settings there is the field "Non-numerical answer option prefix".

I tried to set it to another value and got the message that the format does not fit or need to be right. But I don't know what the format is because the error message does not tell it.

Expected behavior:
Make the expected format clear.
Communicate the format before an error appears.

Sidenote: On my system the prefix is by default set to "AO" (two letters). I am not sure if this is default to LimeSurvey or just to my instance. If it is upstream default please take it as an extra bug report. The prefix is followed by numbers; e.g. "AO01" (letter A, letter O, number 0, number 1). Having letter O and number 0 side by side makes it hard to read.

Additional Information

LimeSurvey 6.16.2 on my universities server where I am not the admin

TagsNo tags attached.
Attached Files
image.png (91,680 bytes)   
image.png (91,680 bytes)   
Bug heat2
Complete LimeSurvey version number (& build)6.16.16+260408
I will donate to the project if issue is resolved
Browser
Database type & version
Server OS (if known)
Webserver software & version (if known)
PHP Version

Users monitoring this issue

There are no users monitoring this issue.

Activities

mfavetti

mfavetti

2026-04-14 08:33

developer   ~84620

I agree the format is not communicated to the user in any way. looking at the markup, it must meet the pattern [A-Za-z]{0,3}

so lowercase/uppercase letters zero to three characters long

mfavetti

mfavetti

2026-04-14 08:43

developer   ~84624

Last edited: 2026-04-14 08:44

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input

"Note: If using the pattern attribute, inform the user about the expected format by including explanatory text nearby. You can also include a title attribute to explain what the requirements are to match the pattern; most browsers will display this title as a tooltip. The visible explanation is required for accessibility. The tooltip is an enhancement."

So, two issues here. No feedback for any user (could be explanatory text and optionally title attribute). Also breaks accessibility (must have explanatory text, title attribute is not acceptable)

mfavetti

mfavetti

2026-04-14 08:46

developer   ~84625

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/pattern

Usability and accessibility considerations
When including a pattern, provide a description of the pattern in visible text near the control. Additionally, include a title attribute which gives a description of the pattern. User agents may use the title contents during constraint validation to tell the user that the pattern is not matched. Some browsers show a tooltip with title contents, improving usability for sighted users. Additionally, assistive technology may read the title aloud when the control gains focus, but this should not be relied upon for accessibility.

Only relying on the title attribute for the visual display of text content is discouraged, as many user agents do not expose the attribute in an accessible manner. Although some browsers show a tooltip when an element with a title is hovered, that leaves out keyboard-only and touch-only users. This is one of the several reasons you must include information informing users how to fill out the control to match the requirements.

While titles are used by some browsers to populate error messaging, because browsers sometimes also show the title as text on hover, it therefore shows in non-error situations, so be careful not to word titles as if an error has occurred.

mfavetti

mfavetti

2026-04-14 08:53

developer   ~84626

bug, not feature request

Issue History

Date Modified Username Field Change
2026-04-13 15:26 buhtz New Issue
2026-04-13 15:26 buhtz File Added: image.png
2026-04-14 08:33 mfavetti Note Added: 84620
2026-04-14 08:33 mfavetti Bug heat 0 => 2
2026-04-14 08:43 mfavetti Note Added: 84624
2026-04-14 08:44 mfavetti Note Edited: 84624
2026-04-14 08:46 mfavetti Note Added: 84625
2026-04-14 08:53 mfavetti Note Added: 84626
2026-04-14 08:53 mfavetti Project Feature requests => Bug reports
2026-04-14 08:57 mfavetti Category _ Unknown => Accessibility
2026-04-14 08:57 mfavetti Complete LimeSurvey version number (& build) => 6.16.16+260408