How to properly link validation message to reference selector?
0
Hello all, For our Mendix project we're making our forms more accessible, and I've stumbled across a problem with a reference selector. When using the NVDA speech viewer to double check our accessibility I've noticed that our validation message isn't quite accessible the way we want it to be. Our dropdowns however do as we expected and we want the reference selectors to behave the same way. Both validations are triggered on a 'next step' button, in a validation microflow, at the same time. In the picture below, the RED is the reference selector, and the GREEN is a dropdown: as you can see we're missing the "invalid entry" and actual content of the validation message. I have looked in the HTML and see that the reference selector (RED) isn't actually using a aria-describedby or aria-invalid referencing the validation message, while the dropdown (GREEN) does. I've tried using the accessibility helper to add the aria-invalid, which works but not completely the way we want it to, and for the aria-describedby I cannot hardcode the right value in, as the id of the validation message is dynamic. So what is the right way to actually connect the validation message to the reference selector? Is it something core Mendix that's not entirely working right or am I just overlooking something? Thanks in advance!
As per your question seems you are facing issue in reference selector for which validation is written in microflow.
As given scenario Address Entity has association with Country so added reference selector in page.
on click on the address page next button we are calling Microflow which is checking country is empty or not if empty then showing validation message in page.
Using below approach you can achieve this also check the role of login user has access on association.