How to make a longer number field. -...

User 574966 Photo


Registered User
27 posts

Find file "validation_data.js"

Edit the field you created from

"item19_number_1":{"digits":true,"range":{"0":0,"1":99999999,"2":1},"required":true,"messages":"Please enter only the numbers - no dashes."}

where "item19_number_1" is the 'item number in the form. Yours will likely be a different number
"99999999" is an 8 digit number field
the rest of the data does not need changing.
to

"item19_number_1":{"digits":true,"range":{"0":0,"1":9999999999999999,"2":1},"required":true,"messages":"Please enter only the numbers - no dashes."}

by adding 16 "9"s it will hold a 16 digit number. In mine I have changed the "9999999999999999: to be "6599999999999999" as not credit card number has first 2 digits greater than 65. If you also change the value "digits" to be "creditcard" it will check for viable credit card number formats and produce an on form error if incorrect (very nice).

The html file(yourform).htm will require similar modification to reflect these changes.

As Scott has stated, please do not consider emailing the results. I have also modified the method=post line within (yourform).htm to call my own php backend that submits to the processing host. I use myvirtualmerchant. If anyone is interested, I can probably find a way to share my backend code.

Hope it helps....Steve
User 38401 Photo


Senior Advisor
10,951 posts

Hya Steve,

Thanks for sharing this quick fix, but I think you'll be glad to know that this issue will be resolved in the next release as it will be including a new setup to accommodate both this and a lot of other problems all in one setup. I won't go into details here, I'll leave that for CC to do if they haven't already, but rest assured this will be much more than fixed very soon :)
User 187934 Photo


Senior Advisor
20,181 posts

Scott Swedorski wrote:
Version 1.2 will have a new field called Regular Expressions. With that you will be able to do practically anything you want.

http://www.coffeecup.com/help/articles/ … m-builder/
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 2303371 Photo


Registered User
27 posts

Hi
I cannot locate this file "validation_data.js on my desktop computer.

Assistance Required

User 187934 Photo


Senior Advisor
20,181 posts

Pretty please with sugar on it?
It should be in the folder that your form is exported to. So if the name of your form is myform then I would look in myform_exported/myform/validation_data.js
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 2073552 Photo


Registered User
1,625 posts

Have you tried doing a search from the start menu of your OS?
"An Apple doth not fall far from its tree, yet an orange does."

https://lbwebsitedesign.com - Responsive Web Design & Web Hosting Services.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
User 38401 Photo


Senior Advisor
10,951 posts

You should find that wherever you saved your Web Form Builder files. If you created a form, which is what I am assuming you did, when you saved the form you had to tell it where to save. Check that location for that file.

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.