Hi,
In matrix there are predefined keywords available from a menu that simplify setting up a custom layout. The keywords relate to the form fields, so that selecting:
"Field: Please enter your de…: Name" yields: %question_field_36180_q1%
So far, so good. For each field there follows a second keyword: "Section Asset ID: Please enter your de…" the truncated title makes it hard to know but it appears to be saying it will insert the ID of the previous field - prefect if you want to build a valid and accessible form.
Selecting this option yields: %question_id_36180_q1%
So my users' HTML ends up looking like this:
Name: %question_field_36180_q1%
Still looks OK, however, the source of the rendered page looks like
this:
Name:
...with the id/name not matching q36180_q1 � q36180:q1
Is this a bug or are the keywords not used correctly by my user (2 bugs actually if you consider the fact the description in the keyword list is truncated badly)?
The bug tracker seems to have a few Feature requests in regards to accessible forms, has anybody successfully coded one?
The inconsistencies between %question_id_% and %question_field_% should be bugged; they should be the same (can't remember which is correct though).
The truncated name in the keyword drop-down is not a bug: it's deliberately truncated to, IIRC, 30 characters there to avoid huge section names greatly expanding the field. Question names have the same fate. However on the form itself the full name of the section is displayed.
[quote]The truncated name in the keyword drop-down is not a bug: it's deliberately truncated to, IIRC, 30 characters there to avoid huge section names greatly expanding the field. Question names have the same fate. However on the form itself the full name of the section is displayed.[/quote]
Fair enough about the truncating, but in terms of usability, could I suggest that for keywords relating to fields the section name not be used. As you can see from the screenshot attached, the "Section Asset ID" keywords shows the section title and not the field. It's not great.
Okay, now I see what you mean - that's probably worth reporting as well - it should be doing the same as the "Field" ones you see, something like "Asset ID: Section N… : Field Name" or similar. There should be a Section Asset ID field as well, but for that to appear once for each question makes me wonder whether they would result in field Asset ID keywords instead.
So yes, report that and we'll get someone to look at it.