6 Replies Latest reply: Mar 17, 2014 7:45 AM by try67 RSS

    Javascript to adjust form field font size by number of entered characters?

    AllenFreeman Community Member

      I have a form field that asks for 'full name' (first, middle, last). It's posted large at the top of the form. Some people's names are short, some long.

       

      Is there a javascript way to adjust the font size used within a form field based on the number of characters entered into field?

       

      i.e. if the name entered is Joe Smith, the font size is 30pt, if it's Alexander Hamilton the font size is 20pt?

       

      Thanks!