How to make a longer number field.


Registered User
16 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


Senior Advisor
10,174 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 :)
Jo Ann

http://elementsinwebdesign.com (a works still in progress)


Senior Advisor
12,243 posts
Online Now

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.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
http://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
http://progrower.coffeecup.com/shop/


Registered User
7 posts

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

Assistance Required


Senior Advisor
12,243 posts
Online Now

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.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
http://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
http://progrower.coffeecup.com/shop/


Senior Advisor
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."

http://lbwebsites.com - Web-Design & Hosting.
http://helpsite.sirage.com - HTML5, CSS3 and CC Help Video Blog.
http://www.sirage.com - Personal Site.
http://www.aveofluv.com - Wedding Site.


Senior Advisor
10,174 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.
Jo Ann

http://elementsinwebdesign.com (a works still in progress)

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.