Results 1 to 4 of 4
  1. #1
    Join Date
    May 2008
    Posts
    5
    Plugin Contributions
    0

    bug [Done 1.3.9] Text Area - text gets cleared when max characters is reached

    I have a text input attribute with a character limit of 200. If you type and reach the 200 character max, everything you have written is wiped out.

    Is there a fix for this??

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Text Area - text gets cleared when max characters is reached

    Well isn't that somethin' ...

    Moving this to Bug Reports ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Text Area - text gets cleared when max characters is reached

    Edit /includes/modules/pages/product_info/jscript_textarea_counter.js

    change this:
    Code:
      if (excesschars > 0) {
    		field.value = field.value.substring(0, excesschars);
    		alert("Error:\n\n- You are only allowed to enter up to"+maxchars+" characters.");
    to this:
    Code:
      if (excesschars > 0) {
    		field.value = field.value.substring(0, maxchars);
    		alert("Error:\n\n- You are only allowed to enter up to"+maxchars+" characters.");
    Do the same for other product types if needed.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    May 2008
    Posts
    5
    Plugin Contributions
    0

    Default Re: [Done 1.4.0] Text Area - text gets cleared when max characters is reached

    Excellent! Thanks!

 

 

Similar Threads

  1. Text box with Max Characters set - text disappears
    By breda in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 27 Jul 2010, 01:06 PM
  2. Text deleted when max limit is reached
    By kwright in forum General Questions
    Replies: 0
    Last Post: 28 Feb 2009, 07:06 PM
  3. Replies: 2
    Last Post: 7 Aug 2008, 05:05 AM
  4. Weird Text Wrap Problem in Review Text area...
    By Peace Freak in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 11 Oct 2006, 12:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg