can I populate a field with the number of characters in another.

  • Profile Image
    Asked on October 01, 2015 at 12:48 PM

    On the third page of my form I ask about the name they would want, as the charge is calculated on number of letters I need to convert the characters they put into this field into numbers so they write in DANCE I calculate 5*40.


    Is this possible?

  • Profile Image
    Answered on October 01, 2015 at 03:33 PM

    It seems to me that you are asking if it's possible to count the number of characters entered into a field and have that multiplied by your price per letter to be totaled in another field.

    Did I get that right?


    I thought we had something for this using our form calculation but after attempting this a few different ways with the current tools it seems that unfortunately the only way to do this would be outside of jotform through the form's full source code and using a script to check the character count to multiply then have it sent to your other field afterwards. 

    If I'm able to find another way to work around that without doing so then i'll return to your thread here and let you know in another update.

  • Profile Image
    Answered on October 02, 2015 at 07:06 AM

    Thank you for updating us on your workaround, it is a nice solution to the problem. As my colleague Kade explained above, the only seamless way to have the number of letters calculated directly from a Text Box field would be to use the source code version of your form, and manually add the script to perform this calculation on your website.

    So the workaround with using separate Drop Down fields for each letter is a fine alternative if you do not wish to play with and modify the source code version of your form.

    Please do let us know if you need any other assistance with your forms, and we will do out best to help.