ymcatwincities / openy

The Open Y platform. See README.md below
https://openy.org
GNU General Public License v3.0
49 stars 111 forks source link

Multistep Join form has validation issues when Google Translate is active #2546

Closed kdginther closed 3 years ago

kdginther commented 3 years ago

The calc_block_form has a conflict during the multistep process when Google Translate is set to any other language than English (or is in active use).

When clicking "Complete Registration" on the summary page, after having chosen a Membership Type and Location, the form reloads to the first step. Depending on how the site's styling is set up, the user may or may not see an error stating that the Membership Type field is required. Regardless of if the error seen, the form is consistently losing the value of $form_state['storage']['type'], and the field is being cleared out.

After a discussion with @froboy and @podarok via Slack, it was suggested to prevent translating specific aspects of the form that might be causing the conflict.

I am submitting a PR that adds the 'translate' => 'no' attribute to all of the form submit buttons and it seems to have solved the problem.