PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Capturing UK Bank Account Number & Sort Code

  1. I wish to capture a user's bank details such as:

    • Payee Name
    • UK Bank Name
    • Account Number (xxxxxxxx)
    • Sort Code (format xx-xx-xx or xxxxxx)

    What are the best input fields for 'Account Number' and 'Sort Code'?

    How would you recommend validating them against the above requirements e.g. 8 digits for account number and 6 digits or 2-2-2 digits for sort code?

    Many thanks

    Posted 7 years ago on Saturday July 21, 2012 | Permalink
  2. Sounds like you can use the Input Mask functionality to accomplish this with a single line text input:
    http://www.gravityhelp.com/documentation/page/Input_Mask

    Have you already tried that?

    Posted 7 years ago on Monday July 23, 2012 | Permalink
  3. Wow. Just tried it.

    Thank you. Can you confirm if the input mask functionality is validated both client and server side?

    E.g if client turns off js, will it still do validation against the mask?

    Posted 7 years ago on Monday July 23, 2012 | Permalink
  4. It is on the client side only, with JavaScript, to help them enter valid input. You can validate on the server using the gform_validation filter.

    http://www.gravityhelp.com/documentation/page/Gform_validation

    The input mask will encourage users to enter the correct format and the gform_validation filter can ensure that the data you accept is valid.

    Posted 7 years ago on Monday July 23, 2012 | Permalink