Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    [13.1 pro] ariaSte in FormItems

    Hi there,

    we are trying to set some aria-states on FormItems. If i'm replacing the first DynamicForm from this sites and replace it with the form in the codeblock, the ariaStates are not rendered into the input-field.
    https://smartclient.com/smartclient-...ariousControls
    same case with the latest version 14 https://smartclient.com/smartclient/...ariousControls

    Code:
    isc.DynamicForm.create({
        ID: "form1",
        width: 620,
        colWidths: [190, "*"],
        fields: [
            {name: "text", title:"Test Aria State Here", type:"text", hint: "A plain text field", wrapHintText: false,
                    ariaState: { "required": true,  "describedby": "usernameDesc" }}
        ],
        values: { slider: 4 }
    });
    As far as I understood it should be possible (https://smartclient.com/smartclient-...Item.ariaState), and it worked on multiple Canvas elements like Img (https://smartclient.com/smartclient-...ch%3DariaState).

    Is there something wrong with my definition?

    Best regards

    #2
    If you enable screenReader mode, these ARIA tags are automatically written with correct values. Why would you want to reiterate this?

    Note that your attempt is also incorrect: the field is not required, so it should not be so marked.

    Comment


      #3
      Thanks for the response.
      This detail I haven't seen in the formItem documentation. But why does it work in canvas without screenreader mode and on formitems only with activated screenreader mode?

      You are talking about this method right? https://smartclient.com/smartclient-...reenReaderMode

      The attributes in the code above were some examples. You are right that the example code wasn't great but simple enough to show the problem.

      Best regards

      Comment


        #4
        Generally, performance or capabilities differences, for example, ARIA mode may require different rendering which is either slower or can't offer the full function of non-ARIA rendering.

        Comment

        Working...
        X