You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Officers UI: behavior when user clicks enter/return while add or change form is open #30777
Description and Context
Currently if you click enter while the officer edit or add form is open, the form saves and closes automatically. There doesn't seem to be a risk of losing work here because the form does save when it closes. Ideally though clicking the enter/return button wouldn't submit the add or change form - it might be more likely to happen by accident if the user is navigating through this with a keyboard.
Current state
Right now if the add or change form is open and the user hits enter on any input field (except country) the form submits. The existing changes that were entered are saved.
Future state
If the user selects 'enter/return' select or activate the element in focus (same as clicking with mouse)
changed the title [-]Officers: behavior when user clicks enter/return while add or change form is open[/-][+]Officers UI: behavior when user clicks enter/return while add or change form is open[/+]on Sep 19, 2025
@Mihai-QuickSilverDev Please defer to Olga is cross-team work is required. I would not contemplate assigning Dietrich to this unless it was deemed critical by a PO and they didn't have time/people to work on it.
Current behavior is inconsistent with the rest of the Business Registry application and may lead to accidental submissions, especially when users expect to move to the next field or select a suggestion.
Since other forms follow a consistent pattern, this deviation could confuse users or interrupt their workflow. It’s definitely not a blocker, but aligning the behavior would improve overall consistency and reduce friction for users.
especially when users expect to move to the next field or select a suggestion
Why would a user expect to move to the next section when pressing Enter? You navigate between inputs with the Tab key. Not Enter.
Also, selecting a suggestion in the dropdowns still works as expected with the Enter key.
Since other forms follow a consistent pattern, this deviation could confuse users or interrupt their workflow. It’s definitely not a blocker, but aligning the behavior would improve overall consistency and reduce friction for users.
I would argue this would create more friction. Submitting on enter is the default functionality of HTML forms. Why would we go against the grain?
Have you ever filled your password and then pressed enter to login instead of clicking the 'Log In' button? Why would we intentionally remove that functionality?
If the user selects 'enter/return' while focused on the street address field with the canada post drop down showing, then the first address listed is selected (this is implemented in some other filings, like the incorporation application)
The way this works currently on Change of Directors for example the address dropdown is unusable when using a screenreader. Please consider this when suggesting changes. I don't think we should be intentionally making things less accessible.
According to the World Wide Web Consortium accessibility guidelines, the Enter key should "select or activate the element in focus (same as clicking with mouse)” So if someone’s typing in a field and hits Enter nothing would really happen because the field was already active. For something like a dropdown though, hitting Enter would open it. According to W3C that is the standard keyboard behavior that screen reader and keyboard users expect so I proprose we go with that.
This is a proposed rule: This section is not part of the official rule..
Also the rule is about keyboard trap: Focusable element has no keyboard trap via standard navigation
The description: This rule checks if it is possible to use standard keyboard navigation to navigate through all content on a web page without becoming trapped in any element.
Thanks for the links and information. If this is something that will make the experience more predictable and user friendly then we should keep the functionality where enter saves the form. I do see that there are a number of patterns out there (gmail, Airbnb) where hitting enter submits some forms and I also see that some keyboard users see this as an important shortcut for them to complete forms faster.
Janis has raised some concerns that this implicit submission is inconsistent with other forms we have on other filings such as an IA for example. If everything will definitely be in nuxt at some point then this pattern should become the standard although that may take a long time before everything is moved over. Also just want to note that this prioritized as p3 right now so I will try to give this some more consideration and discuss with @janisrogers
Note: when the edit or add officer form is saved, hitting enter does not currently submit the "filing"
This functionality is a best practice, which is what we should be aiming for.
We are building a set of reusable form elements for several filings that are due to be upgraded, so while they may be inconsistent with previous filings, all new/updated filings should be built to best practices.
I understand this exact issue isn't necessarily the highest priority but it is important for our new foundation to be built to the highest standard we are able to (including other accessibility improvements where applicable and having responsive designs).
Regarding Officers: I'll need to make some updates with these reusable pieces so will look to sort that out at that time.
Some frameworks default to submitting the form when Enter is pressed inside a single input field, but that does not apply to complex multi-field forms or modal forms. Enter should not automatically save or close a multi-field form unless the user explicitly interacts with the Save button.
I suggest UX team to do a comprehensive research and define a consistent, application-wide standard for how Enter/Return and other keyboard actions should behave in all forms. This should align with common UX patterns, accessibility guidelines, and user expectations.
@mstanton1 this is currently in the Product Backlog for our team just waiting to be pulled in. I imagine this isn't as high priority as our other work and will discuss it with the team. @deetz99 Let discuss tomorrow,
It's not "some frameworks", it's the standard HTML <form> element behaviour. Any correctly structured form should behave this way.
but that does not apply to complex multi-field forms or modal forms.
Again, anything inside a <form> element should behave this way, multi field or not.
Enter should not automatically save or close a multi-field form
But why?
I suggest UX team to do a comprehensive research and define a consistent, application-wide standard for how Enter/Return and other keyboard actions should behave in all forms. This should align with common UX patterns, accessibility guidelines, and user expectations.
This functionality has been deemed best practice. This also is present multiple places across the site since this ticket first came up, has been used in this form extensively and has not been revisited in that time. Closing ticket because this seems to work as intended, and has not caused any further concern or feedback since the functionality was released.
Activity
vikas-gov commentedon Sep 19, 2025
@OlgaPotiagalova pls review
[-]Officers: behavior when user clicks enter/return while add or change form is open[/-][+]Officers UI: behavior when user clicks enter/return while add or change form is open[/+]Mihai-QuickSilverDev commentedon Sep 25, 2025
@JohnamLane Is this something that Dietrich could work on?
JohnamLane commentedon Sep 25, 2025
@Mihai-QuickSilverDev Please defer to Olga is cross-team work is required. I would not contemplate assigning Dietrich to this unless it was deemed critical by a PO and they didn't have time/people to work on it.
OlgaPotiagalova commentedon Sep 29, 2025
Current behavior is inconsistent with the rest of the Business Registry application and may lead to accidental submissions, especially when users expect to move to the next field or select a suggestion.
Since other forms follow a consistent pattern, this deviation could confuse users or interrupt their workflow. It’s definitely not a blocker, but aligning the behavior would improve overall consistency and reduce friction for users.
@JohnamLane
deetz99 commentedon Oct 31, 2025
Why would a user expect to move to the next section when pressing
Enter? You navigate between inputs with the Tab key. NotEnter.Also, selecting a suggestion in the dropdowns still works as expected with the
Enterkey.I would argue this would create more friction. Submitting on enter is the default functionality of HTML forms. Why would we go against the grain?
Have you ever filled your password and then pressed enter to login instead of clicking the 'Log In' button? Why would we intentionally remove that functionality?
https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/submit_event
deetz99 commentedon Oct 31, 2025
The way this works currently on Change of Directors for example the address dropdown is unusable when using a screenreader. Please consider this when suggesting changes. I don't think we should be intentionally making things less accessible.
jacqueline-williams-549 commentedon Nov 5, 2025
@OlgaPotiagalova @deetz99
According to the World Wide Web Consortium accessibility guidelines, the Enter key should "select or activate the element in focus (same as clicking with mouse)” So if someone’s typing in a field and hits Enter nothing would really happen because the field was already active. For something like a dropdown though, hitting Enter would open it. According to W3C that is the standard keyboard behavior that screen reader and keyboard users expect so I proprose we go with that.
https://www.w3.org/WAI/standards-guidelines/act/rules/a1b64e/proposed/
deetz99 commentedon Nov 5, 2025
I'm not sure how relevant this is.
This is a proposed rule: This section is not part of the official rule..
Also the rule is about keyboard trap: Focusable element has no keyboard trap via standard navigation
The description: This rule checks if it is possible to use standard keyboard navigation to navigate through all content on a web page without becoming trapped in any element.
deetz99 commentedon Nov 5, 2025
W3C predictable
Make web pages appear and operate in predictable ways.
W3C 4.1.2 Name, Role, Value
For example, standard HTML controls already meet this success criterion when used according to specification.
W3C Using HTML according to spec
The objective of this technique is to use HTML according to its specification.
HTML specification, Implicit submission
There are pages on the web that are only usable if there is a way to implicitly submit forms, so user agents are strongly encouraged to support this.
vikas-gov commentedon Nov 6, 2025
@janisrogers pls review with Jacqueline and Deetz on the approach and UI behaviour
5 remaining items
jacqueline-williams-549 commentedon Nov 6, 2025
Thanks for the links and information. If this is something that will make the experience more predictable and user friendly then we should keep the functionality where enter saves the form. I do see that there are a number of patterns out there (gmail, Airbnb) where hitting enter submits some forms and I also see that some keyboard users see this as an important shortcut for them to complete forms faster.
Janis has raised some concerns that this implicit submission is inconsistent with other forms we have on other filings such as an IA for example. If everything will definitely be in nuxt at some point then this pattern should become the standard although that may take a long time before everything is moved over. Also just want to note that this prioritized as p3 right now so I will try to give this some more consideration and discuss with @janisrogers
Note: when the edit or add officer form is saved, hitting enter does not currently submit the "filing"
deetz99 commentedon Nov 7, 2025
I agree that consistency is important.
This functionality is a best practice, which is what we should be aiming for.
We are building a set of reusable form elements for several filings that are due to be upgraded, so while they may be inconsistent with previous filings, all new/updated filings should be built to best practices.
I understand this exact issue isn't necessarily the highest priority but it is important for our new foundation to be built to the highest standard we are able to (including other accessibility improvements where applicable and having responsive designs).
Regarding Officers: I'll need to make some updates with these reusable pieces so will look to sort that out at that time.
OlgaPotiagalova commentedon Nov 14, 2025
Some frameworks default to submitting the form when Enter is pressed inside a single input field, but that does not apply to complex multi-field forms or modal forms. Enter should not automatically save or close a multi-field form unless the user explicitly interacts with the Save button.
I suggest UX team to do a comprehensive research and define a consistent, application-wide standard for how Enter/Return and other keyboard actions should behave in all forms. This should align with common UX patterns, accessibility guidelines, and user expectations.
mstanton1 commentedon Jan 29, 2026
@mbertucci this is another enhancement from the officers feedback. Can you determine where you would like this to live?
mbertucci commentedon Jan 29, 2026
@mstanton1 this is currently in the Product Backlog for our team just waiting to be pulled in. I imagine this isn't as high priority as our other work and will discuss it with the team. @deetz99 Let discuss tomorrow,
mstanton1 commentedon Jan 29, 2026
Absolutely. This seems to be much lower priority. Just keen to do some clean-up!
deetz99 commentedon Jan 30, 2026
Sorry just to comment on this again:
It's not "some frameworks", it's the standard HTML
<form>element behaviour. Any correctly structured form should behave this way.Again, anything inside a
<form>element should behave this way, multi field or not.But why?
Yes I agree.
TVWerdal commentedon Nov 13, 2026
This functionality has been deemed best practice. This also is present multiple places across the site since this ticket first came up, has been used in this form extensively and has not been revisited in that time. Closing ticket because this seems to work as intended, and has not caused any further concern or feedback since the functionality was released.