Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-20628

Prevent Chrome autofilling phone numbers into 'Other amount' fields

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.7.17
    • Fix Version/s: None
    • Component/s: CiviContribute
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      On our website Chrome decided that the 'Other Amount' field was a phone number, and cheerily autofilled it. This meant that people who intended to donate 2-figure sums ended up donating 4-figure sums. Entertaining video here: https://drive.google.com/file/d/0B5j9ZbkpU3FXMTE5VUJXX0xVSVU/view

      You can turn off autocomplete for individual fields. We did it with javascript:

      $('.other_amount-content input').attr("autocomplete", "off");

      I'm not sure of the best way to fix this in core, though.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              krypto Andrew West
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: