What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Can you support a mathematical function in the form calculation widget that returns number of characters in a text field?

    Asked by Beanie3556 on March 01, 2017 at 11:45 PM

    Dear Jotform

    I need to have a textfield to return the number of characters entered in another textfield.

    count=sum(str~=' ');
    gives the total number of non-blank characters in a text string.

     

    It would be great if I could use the form calculation widget to achieve this.

    However, the math expression does not seem to be supported.

    Could you enable support for this?

    If not, please allow the function of the character count widget so return the number of characters in a way that the result (number of characters) can be sent to a desired field so it can be used for calculation purpose.

     

    Thank you very much in advance for your support.

     

    Best Regards,

    Bjorn

     

     

     

  • Profile Image
    JotForm Support

    Answered by Kiran on March 02, 2017 at 02:35 AM

    Unfortunately, this feature is not available at the moment. However, a workaround has been discussed on the thread below by using the source code of the form.

    https://www.jotform.com/answers/466451-

    Please take a look at the thread and let us know if you need any further assistance. We will be happy to assist. 

     

  • Profile Image

    Answered by Beanie3556 on March 02, 2017 at 04:59 AM

    Thank you very much for your reply.

    That thread discusses how to get the word count using java script and tweaking the full source code.

    I want to do the same but I want to count the number of characters in a text field.

    What changes to the java script are needed to do this?

     

    One reflection, it seems to me that this has been a request by quite a large number of people since year 2012. I have seen many replies from you where you say "the feature is not available at the moment". Would it not be better that you invest some development time in implementing a out-of-the-box feature, rather than spending a lot of support time to instruct people do to the work-around solution?

     

  • Profile Image
    JotForm Support

    Answered by BJoanna on March 02, 2017 at 08:32 AM

    I saw that you posted same question on multiple threads.

    I also saw that you mentioned that you will check tomorrow script code that my colleage provided you on this thread:

    https://www.jotform.com/answers/1077741 

    If you have any followup question please reply there.