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

  • Profile Image
    Asked 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,





  • Profile Image
    Answered 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.

    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 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
    Answered 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: 

    If you have any followup question please reply there.