Variable not incrementing properly with tab/enter usage for 508 compliance
I'm having a problem with a variable not incrementing properly when using Tab and Enter (for 508 compliance) to navigate through a page. The page in an interaction where the user has to select multiple items and then click a Submit button to get it correct. After the first incorrect try they get one feedback and after the second incorrect they get a different feedback box appearing. Everything works fine when using the mouse or the shortcut keys I defined for the input. The problem arises when the user uses the tab and enter key combination. If they get it right on the first try, everything works as it should. However, if they get it wrong, it immediately shows the second feedback option.
I'm using a variable to count the incorrect. I've tried the increment (increase by 1) and expression (var = var + 1) but neither seem to make a difference with the tab/enter method. Have any of you had this issue and know how to deal with it?
