Counting the number of characters in a field

  • BVHall
    Asked on June 30, 2016 at 3:56 AM

    I have a field that I need to count the number of characters it contains.  So, for example, if the characters are 34573628, then the number of characters is 8.  Another example might be sd56472pby; here the number of characters is 10.

    Is there a function that can do this for me?

    Thanks

  • Chriistian Jotform Support
    Replied on June 30, 2016 at 5:21 AM

    Unfortunately, it is not possible to get the number of characters a user has inputted on a certain field. But if you are trying to limit the maximum number of characters your user can enter in a certain Textbox field, you can limit it using the Max Size setting of the field.

    Counting the number of characters in a field Image 1 Screenshot 20

     

    Do let us know if you need further assistance.
    Regards.

  • Jeanette JotForm Support
    Replied on July 21, 2016 at 1:06 AM

    We actually have a counting character widget: http://widgets.jotform.com/widget/character_counter

    It could help you to achieve what you want, the guide bellow will help you to add it to your form: http://www.jotform.com/help/252-How-to-Add-a-Widget-to-your-Form.

  • Beanie3556
    Replied on March 2, 2017 at 1:44 AM

    The character counter widget is only a widget that counts down how many characters that are left to be entered.

     

    BVHall says "I have a field that I need to count the number of characters it contains."

    I think he means the counted result should be put in a separate field and allow this to be used for some other calculation purpose.

    It this is the case, I think the character counter widget is useless since it does not contain the ability to use the counted number in any other way than to present to the user how many characters are contained.

    It would be great if you could further develop this widget to allow to fetch the result and allow it to be sent to another field where you can use it as a base for another calculation.

    A great number people has asked for this feature since 2012 and we are in 2017 now. I find it rather disappointing that Jotform do not invest in some development here.

    The only solution to me is a work-around which involves java script and downloading the full source code. This is for techies. Jotform sales point is that you can create a form without no coding.

    In this sense, it is a surprise to me that this solution yet does not exist as a on-the-shelf solution.

     

     

  • Chriistian Jotform Support
    Replied on March 2, 2017 at 3:20 AM

    This seems to be an old thread. I moved your concern to a separate thread. Please follow this link: https://www.jotform.com/answers/1080001. We will address your concern there shortly.

    Regards