Issue #3193911 by sandboxpl, mortim07: Add new JS code with logic to identify primary submit buttons in forms