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

    Input Mask Should Allow Dollar Sign in Numeric Fields

    Asked by sharkeys78 on March 18, 2014 at 04:10 PM
    currency format and decimal
  • Profile Image

    Answered by jedcadorna on March 18, 2014 at 07:23 PM

    Hello,

    Thank you for contacting us.

    Use a textbox field and you can set the default value to currency sign then make the field to validate as Numeric. Please see the below image and see if this helps you.

  • Profile Image

    Answered by jedcadorna on March 18, 2014 at 07:34 PM

    Forgot to add about the decimal places. If you want both currency and decimal places to be added to the field disregard the default mask and use the input mask instead.

    Since you are validating a number use ### as your input mask. You can also format it to add decimals like this ###.## and to add currency just add it at the beginning of the input mask like this $ ###.##

    Here's a sample:

     

    and here's what it should looks like:

  • Profile Image

    Answered by mcarv63 on May 23, 2014 at 07:54 PM

    I really wished this worked. Unfortunately, when you enter the $ in the input mask it doesn't validate because all values have to numeric.

  • Profile Image
    JotForm Support

    Answered by Welvin on May 24, 2014 at 12:53 AM

    We currently do not have a direct feature that would accomplish this aside from using the Textbox field and manually putting the dollar sign as the default value, example:

    http://www.jotformpro.com/form/41431138553954

    Let me forward this thread to our developers as a feature request. Maybe, a widget that would allow us to configure a default currency with the ability to input an amount. We'll update you here once this is implemented.

    Thanks

  • Profile Image

    Answered by intranet.admin on May 26, 2014 at 12:36 PM

    Please can I ask how this works? It seems to allow more than 2 decimal places, and doesn't seem to allow either £ nor $ prefix in the input mask.

     

    kind regards

    Richard

  • Profile Image
    JotForm Support

    Answered by KadeJM on May 26, 2014 at 01:31 PM

    I checked this further and it seems to be based on the field being set entirely to " Currency Validation " since this would only accept values based on known currencies. The currency validation is only recognizing that there is a currency being used of some sort so it allows that as long as it's a valid value and not some off the wall number that couldn't exist with a currency. The masking you can add in to limit this furthermore so that only certain amounts are accepted if you want. 

    Was this still not working on your end? Can you please try again?

    Please see my test form: http://form.jotform.us/form/41453417692154

    And here are some random tests I did with US Dollars and Euros: