Cart Solutions Webform Customizations

December 18, 2014 -- Anonymous
Details: 

Module: WebformSite(s) this customization is in use: Cascade Cart SolutionsReason for customization:  Visitors were hitting ENTER rather than TAB when trying to advance through the form. Hitting ENTER causes the form to submit. The error at the top of the page when required fields are not filled will include the following: fieldname field is required. Please be sure to hit the TAB key to advance through the form, not the ENTER key.Directions:  

  1. Open webform.module
  2. Customization located under section: // Validate the current input.
  • SEARCH FOR THIS: form_error($elements, t('!name field is required.', array('!name' => $elements['#title'])));
  • REPLACE WITH THIS: form_error($elements, t('!name field is required. Please be sure to hit the TAB key to advance through the form, not the ENTER key', array('!name' => $elements['#title'])));

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.