Have I already thanked you for a great module? :-)

When using Use anonymous checkout as option to login form, the login form contains two radio buttons that uses Drupal javascript states to show the login button OR this module's continue button. The problem is that both buttons remain in the DOM and that the first one will be triggered when pressing enter.

Example: If the value of the radio buttons equals No (You can create an account later), only the username / email field and the continue button are visible, the password field and login button are hidden. But when the user submits the form by pressing enter, the login button is triggered and the user will be prompted to enter a password.

I propose to use AJAX to update the form instead of using javascript states to hide elements.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lmeurs’s picture

Status: Active » Needs review
FileSize
5.86 KB

Attached a patch!

opdavies’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

The patch no longer applies to the latest dev version of the module.

error: patch failed: commerce_checkout_redirect.module:180
error: commerce_checkout_redirect.module: patch does not apply