PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Maximum Characters - Spaces and Cut & Paste

  1. I have a form with a custom field, set to Single Line Text for the field type.
    Maximum characters is set to 10.
    When you cut and paste a value into the field on the form, it allows blanks to be entered, but they are not checked against the maximum character limit.
    Example:
    A value of 1234567890 is paste into the field, with a trailing space after the value - i.e. 1234567890<space>
    The form allowed the space to be submitted, and should have counted it against the maximum count and saw that there was 11 characters and prevented the form from being submitted (and should have returned an error message).

    Thanks

    Using GF Version 1.6.3.3.4

    Posted 11 years ago on Monday April 30, 2012 | Permalink
  2. David Peralty

    When you look at this in your entries, is the space trimmed from the value? I've tried this numerous times, and have been able to enter a space character after the 10th character.

    Posted 11 years ago on Tuesday May 1, 2012 | Permalink
  3. It appears that the field DOES limit the number characters, and DOES include spaces. So it looks like my problem is in another unrelated area.
    Thanks for the help.

    Posted 11 years ago on Tuesday May 1, 2012 | Permalink