TextArea MaxLength Support
Last Post 11-19-2012 06:06 AM by Ryan Bakerink. 1 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages Not Resolved
Jeremy FarranceUser is Offline
going with the flow
going with the flow
Posts:31
Avatar

--
11-17-2012 06:59 AM
    I notice that for input fields, under validation, when you set Textbox Max Length, in HTML the MAXLENGTH attribute gets set appropriately on the INPUT field. However, doing the same thing for a Multiline TextBox (TEXTAREA) field does not. Now that many browsers are supporting or will soon (since it is standard in HTML5), will an upcoming version of Dynamic Forms properly get this attribute in place?
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    11-19-2012 06:06 AM
    Hello Jeremy,

    Yes the MaxLength feature doesn't work with the Multi-lined text box in Dynamic Forms. I apologize for this inconvenience.

    A common workaround is by implementing a simple JavaScript function that counts the number of characters in the multi-lined textbox and don't allow over a certain number.

    if(countChars($(MultiLineShortFieldName)) <= 10)
    {
    // code here
    }
    else
    {
    //code here to remove all characters after 10 characters.
    }

    Another cool functionality you can implement is in the following demonstration:
    http://www.datasprings.com/products...stration-6

    Take a look at the "Would you like to pass along any comments?:" question.

    Please let me know if you have any questions.

    Thanks,

    Ryan


    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi