Announcement

Collapse
No announcement yet.

Address Verification Errors and Address Line 1

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Here is some javascript that removes the comma.


    Code:
      function stripcomma(obj) {
        var oAddr = obj.value.replace(/,/g, "");
        obj.value = oAddr;
      }
    in the input field that you want the commas removed add the input attribute:

    Code:
     onblur="stripcomma(this)"
    http://www.alphabetsigns.com/

    Comment


      #17
      I can't find it right now, but there is a great jQuery plugin that can do things like this for ALL or a Listed set of input fields (search for jQuery Validation tools). The nice thing about this is that it can work on multiple forms and inputs and its just a list like:

      #formID(fieldName, validation-type)

      with globals such as

      #formID()

      Checks all forms for all rules.

      But yea, Daniel's idea would be great for just that one field.
      Bruce Golub
      Phosphor Media - "Your Success is our Business"

      Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
      phosphormedia.com

      Comment


        #18
        Originally posted by srmb View Post
        So I'm revisiting an aspect of this problem. It seems that when a customer enters a comma in the address field, when the transaction is run through Authorize.net it changes the comma to ","
        Here's an example:
        Address: 48-50, 44th Street, Apt 5D
        Of course this is getting declined as a street address mismatch.
        The address field is displayed with &mvte:global:BillAddress1;
        Is there something I can do to prevent commas from getting submitted as code? Or is there a way to prevent commas in the address field?
        An onsubmit in the OPAY <form that removes commas from the address line?
        Larry
        Luce Kanun Web Design
        www.facebook.com/wajake41
        www.plus.google.com/116415026668025242914/posts?hl=en


        Comment

        Working...
        X