Problem with number field - Page 1

User 360710 Photo


Registered User
24 posts

I have a number field that is set to the following:
Decimals 0
Min Value 0
Max Value 999999999
Force steps 1 at a time
Required

When I enter any number between 0 and 999999999, I get a validation error: "Please enter a valid value between 0 and 99999999."

Any suggestions?
User 187934 Photo


Senior Advisor
20,271 posts

Cant you share a link to your form?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 360710 Photo


Registered User
24 posts

sure. It is here:
http://www.albertabmx.com/forms/ABMXOnl … neReg.html

It appears to work in IE but not in Firefox. I can enter single digit numbers in FF but as soon I enter anything else I get the error. Have not tried Chrome yet.
User 360710 Photo


Registered User
24 posts

Works in Chrome too, just seems to be FF.
User 2147626 Photo


Ambassador
2,958 posts

Not working in my FF either.Updated FF to 29.0.1 and still no good. Hmmm. Right, works in IE for me, just not in FF. This might be one you will want to open a support ticket on so the CoffeeCup gurus can have a look at it. Just go to your name in the top right of this window, come down to 'Your Support Room, and open a topic. Hopefully they can get you going. If you do find a solution, please post back here and let us know what it was. Thanks.
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 122279 Photo


Senior Advisor
14,649 posts
Online Now

Works in Safari and Opera too.
Strange...
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 187934 Photo


Senior Advisor
20,271 posts

Open a support topic. the form validation will allow up to 45 for me to be entered in FX but the validation file doesn't show that.
http://www.albertabmx.com/forms/ABMXOnl … on_data.js
For the type of validation your looking for I would use a reg expression.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 103173 Photo


VP of Software Development
0 posts

I created a quick form here using those settings and it works fine in all browsers:

http://test-forms.coffeecup.com/forms/number/

Here you can see I used the number 47 and it submitted fine.

http://s26.postimg.org/ghhxzwlt5/Screen_Shot_2014_06_09_at_11_01_38_AM.png
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 2147626 Photo


Ambassador
2,958 posts

Okay, I'm not a coder so someone else is going to have to look at this.

Scott's example works, this is the code shown on his page...
<div class="fb-input-number">
<input type="number" id="item1_number_1" autocomplete="off" min="0" max="999999999"
step="1" data-hint="" name="number1" />
</div>


Darren's code does not work . . .
<div class="fb-input-number">
<input name="LicenceNumber" id="item27_number_1" autofocus required type="number"
min="0" max="99999999" step="1" placeholder="" autocomplete="off" data-hint=""
/>


The main thing I'm seeing different is that Scotts code defines input type="number", and that is not part of Darren's code. Could this be it? If not, someone else please jump in. Would also like to know why that input type wasn't added to Darren's if it was needed. WFB should have done it, right?

Or do I need to just stay on the farm until the new RSD comes out :D
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 360710 Photo


Registered User
24 posts

I completely removed all the exported files from both the web server and my local copy. Re-exported the WFB files and re-published. Same problem with FF. Changed the numeric field to a regular expression as suggested and that works. The thing I like about the numeric field is that validation can be used by limiting the numbers to a specific range. Don't really understand what id going on. It works when published at Scott's location.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.