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

    limit the number of characters in a ‘form calculation’ field

    Asked by sixtowns on October 21, 2014 at 05:46 AM

    How do I limit the number of characters users can input in a ‘form calculation’ field, with a decimal point?

    form calculation number of characters decimal point decimal
  • Profile Image

    Answered by Ben on October 21, 2014 at 09:18 AM

    Hi,

    The Form Calculation can not have a limited accepted number since it was not designed for this.

    What I would suggest is to use:

    Masked Input widget - It will help you to define the number of decimal places you want and will show the number in a nice manner.

    Text Box widget - It has the Mask property that is very useful

    Number widget - It is designed for numbers and can help you to limit the minimum and maximum number.

    I presume that the Text Box would be the best alternative.

    You can see a quick sample here: http://form.jotformpro.com/form/42933953296971

    If you want you can clone the jotform to your own account, or just let us know if you need any help setting your jotform as shown in the jotform I made above.

    Best Regards,
    Ben

  • Profile Image

    Answered by arun on October 21, 2014 at 10:06 AM

    Hi the Masked Input widget seems to solve this problem, however if the calculation widget does not pick up the figures to give me a total.

     

    http://www.jotform.com//?formID=42927473336966

  • Profile Image

    Answered by Ben on October 21, 2014 at 10:39 AM

    Hi Arun.

    I am glad to hear that the Masked Input works as you wanted. :)

    Now I took a look at it and I see that the Masked Input does not send the number to the form calculation widget so I will be notifying our developers to take a look into this.

    I have however created a jotform for you to see if that would work in your case:

    http://form.jotformpro.com/form/42934489927977

    Now you would probably need to make some changes to configure the mask, but do let us know if this works or if you need any help while our developers are looking into the reason why the Masked input does not work.

    Best Regards,
    Ben

  • Profile Image

    Answered by sixtowns on October 21, 2014 at 10:46 AM

    Hi, this looks fine, can I limit the number of digits?,  could you put this form in my forms so I can have a look at it?.

     

    Thanks 

  • Profile Image

    Answered by sixtowns on October 21, 2014 at 10:51 AM
    Hi, this looks fine, can I limit the number of digits?,could you put
    this form in my forms so I can have a look at it?.
    Thanks
    ...
  • Profile Image

    Answered by Ben on October 21, 2014 at 11:26 AM

    Hi,

    You can clone any jotform that you like to your account by following these steps: How to Clone an Existing Form from a URL

    This is the URL of the jotform: http://form.jotformpro.com/form/42934489927977

    To limit the number of characters that can be entered you should click on Max Size button in the toolbar (after clicking on the Text Box widget).

    Also if you would like to change the way numbers are accepted (the input mask given to the fields). you should click on the Input Mask button to the right.

    Do let us know if you have any further questions.

    Best Regards,
    Ben

  • Profile Image

    Answered by sixtowns on October 21, 2014 at 11:42 AM

    Thanks for your help, any way you can add a decimal point to the total figure?

     

    Thanks

  • Profile Image

    Answered by Ben on October 21, 2014 at 12:10 PM

    Hi Arun,

    Yes, you should be able to do that with the use of input mask.

    As you can see it holds Pound sign at the start and then ###.

    ### mark the place where numbers can be added, so one # character would mean that one number can be added ### that 3 numbers can be added and so on.

    to have the decimal places filled out as you want them you can do ###.## allowing up to 999.99 or change it to ###,## to format it like 999,99

    I usually prefer #.###.###,## but you can make it any way you prefer, for example ##,##### allowing you to enter numbers up to 99.99999

    A thing to note is that any character that you add to the input mask, that is not # (numbers), @ (letters) or * (both letters and numbers) will stay shown - this is how the pound sign is being shown on the far left.

    Do let us know if you have any further questions.

    Best Regards,
    Ben

  • Profile Image

    Answered by sixtowns on October 21, 2014 at 01:33 PM

    Ben, and which fields did you use to create the form?

    http://form.jotformpro.com/form/42934489927977

  • Profile Image

    Answered by Ben on October 21, 2014 at 02:44 PM

    Hi Arun,

    I have used the Text Box widgets/fields, you can find them under Form tools:

    Do let us know if you have any further questions.

    Best Regards,
    Ben

  • Profile Image

    Answered by sixtowns on October 21, 2014 at 02:54 PM

    many thanks