Problem with number field - Post ID...

User 187934 Photo


Senior Advisor
20,271 posts

The reg expressions are great way to do validation. I'm not sure what is causing the difference between what Darren did and Scott but it is probably the fact that they aren't the same.;)
Scotts validation js for the number input.
"item1_number_1":{"decimals":"zero","range":{"0":0,"1":999999999,"2":1}


Darrens validation js for the number input.
"item27_number_1":{"range":{"0":0,"1":99999999,"2":1},"decimals":"zero","required":true}

Their not the same so I would expect different results.
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 122279 Photo


Senior Advisor
14,649 posts

The only difference I could spot was that Darren has "required":true. In Gunsmoke's post there is 'autofocus required'. That really shouldn't break it!? I have used similar, both autofocus and required for the same input field, although not for numbers, and it works well in all browsers. Maybe remove the autofocus?

Probably nothing to do with the actual problem, but I wonder why the properties appear in a different sequence in those two forms. Has it to do with different WFB versions, or the sequence in which they were added?
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 360710 Photo


Registered User
24 posts

I also wonder if it's an update issue? This form has been around for a while and was created in a previous version of WFD. The form has been edited slightly and re-exported in the latest version, but was never re-created from scratch.
User 103173 Photo


VP of Software Development
0 posts

Darren Williams wrote:
I also wonder if it's an update issue? This form has been around for a while and was created in a previous version of WFD. The form has been edited slightly and re-exported in the latest version, but was never re-created from scratch.

I don't see how. Remember you gave me your .fb file and I uploaded it here and it worked without any modifications. I still think the issue is related to how you are exporting and uploading because we are both using the same file.
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 360710 Photo


Registered User
24 posts

I don't see how. I've been using the same form and export/upload process for several years now.

What I don't understand is the differences pointed out above in the coding. The same form published on two different sites with different results.

I completely deleted all export files both locally and on the site and re-exported/published several times from different computers with the same results on the numeric field. The only thing I didn't try was recreating the entire form from scratch.

I have since re-published the form using regular expression instead of numeric so comparing now is not going to help. It is now live and accepting submissions, so please no testing on the site.

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.