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.
How to ensure that a monetary amount is entered in the correct format?Asked by KeyshaunSmith on February 23, 2016 at 10:16 PM
People will be entering monetary amounts into a text box of my form, I would like to ensure that the amount is being entered in the following fashion: $10.00 I tried an input mask but realized that people will entering differing amounts, some may be entering $25.00 while other may be entering $100.00 so this mask was not able to cover both variables.
I've cloned and checked your form. I am not able to change the prices on my side. I assume that you've mentioned about the Total Cash Enclosed field.
If you want to allow specific amount you can try to use radio button instead of text box field.
Hello! There is only one field in which the respondent will be imputing there own monetary amount. that is the total cash enclosed field. They are able to enter any amount they would like for that field but I need it to follow the same format $20.00 or $100.00 I can't figure out how to validate it so that both options are available.
If I understand your request correctly you want to allow your customers enter two different values. For example, they can enter both 100$ and 20$.
First of all we will add a radio button and text box field on our form. Then we will create our condition to add input mask for both values.
Here is how to do this:
1) Click on Conditions.
2) Choose ENABLE / REQUIRE FIELD.
3) Make the arrangement as you see below for your first value.
4) Make the arrangement as you see below for your second value.
Here is how it works:
This is not the case either, the respondent needs to be able to input ANY monetary amount in the correct monetary format (dollar sign and period). The format is where i am having an issue I need to ensure that they submit it so that it looks like $10.00 or $50.00 or $100.00 or $224.00 these are all just examples.
Hi, you can use our Masked input widget to achieve your goal.
I provided a guide for you on how to set up masked input widget.
As you can see, $ sign is added automatically on widget adding.
We format our input mask by entering 9 where we want numbers to be entered. Everything else is considered a mask. You can set precision, and symbol for decimal places. you should leave that as is to achieve what you want. Last setting is for thousands separator you should leave default value.
In my guide i'm setting up mask for values under 100$.
For any value that you want to be formated as currency you just need to delete all formatting from field. So instead 99.99 field should be empty.
You can also set if your field should allow numbers only, Prefix for field is $ by default.
You can also set default value for field to be shown before user enters anything.
If you want you can also set an option to set suffix to your input mask.
Please let me know if this works for you.
The issue with the mask is that people will be entering vaules both above and below $100.00 I can't create a mask for that.
Any solution for this problem?
You can still use "Masked Input" widget to allow users to input any numbers. It will accept any numbers. Please check the screenshot below:
Hope this helps.
Do get back to us if you have any questions.