TOPIC:

Validation - numbers only 5 years 4 months ago #146646

  • Topic Author
  • Delboy
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 164
  • Karma: 1
  • Thanks: 4
If I am using a text field for a telephone number entry is there a way to prefix that field with a symbol like # or a full stop. That way Google does not see a zero first therefore the zero will not be removed by Google Spreadsheets.

Please Log in or Create an account to join the conversation.

Validation - numbers only 5 years 4 months ago #146649

  • pedro81's Avatar
  • pedro81
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 15273
  • Karma: 287
  • Thanks: 1075
Ah, now i understand you.

Ok, what you can do is create a new form element:
- type: a Hidden imput.
- Label: Telephone variation
- Name: newphone

Then go to the current and visible telephone field > Advanced tab > ActionScript area:
- Type : custom
- Actions : blur
- into the code area enter this script:
function ff_phoneElement_action(element, action)
{
    switch (action) {
        case 'blur':
               ff_getElementByName('newphone').value = '#' + element.value;  
            break;
        default:;
    } // switch
} // ff_phoneElement_action

change phoneElement to your element Name. This code should add a # symbol before the entered phone number.

Finally add this field into the Drive configuration to upload this value.

i hope this helps.

Please Log in or Create an account to join the conversation.

Validation - numbers only 5 years 4 months ago #146650

  • Topic Author
  • Delboy
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 164
  • Karma: 1
  • Thanks: 4
Thank you so much!

Appreciate your time and support ;-)

Please Log in or Create an account to join the conversation.

Validation - numbers only 5 years 4 months ago #146651

  • pedro81's Avatar
  • pedro81
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 15273
  • Karma: 287
  • Thanks: 1075
Just test it and let us know if this works.

Please Log in or Create an account to join the conversation.

Validation - numbers only 2 weeks 2 days ago #248176

  • hoekbrwr
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 81
  • Thanks: 3
Had the same problem with telephone numbers,found this by Google. Your tweak works well!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.049 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!