Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6875235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:17:47+00:00 2026-05-27T04:17:47+00:00

The title sucks, I’m sorry. It takes a little bit to setup my problem,

  • 0

The title sucks, I’m sorry.

It takes a little bit to setup my problem, so I’m going to try and simplify it.

My form uses structure notation.

<input  type=   "text"
        name=   "bank[routing_number]"
        id=     "bank_routing_number"
        value=  "#rc.bank[ "routing_number" ]#"
        autocomplete=   "off"
        maxlength=      "9" />

<input  type=   "text"
        name=   "bank[routing_number_confirmation]"
        id=     "bank_routing_number_confirmation"
        value=  "#rc.bank[ "routing_number_confirmation" ]#"
        autocomplete=   "off"
        maxlength=      "9" />

The ValidateThis rules work fine on the server. I’m running on ColdFusion 9.0.1.

The problem I have is the JavaScript code generated by ValidateThis.

This is the JavaScript rule for EqualTo.

fm['bank[routing_number_confirmation]'].rules('add',{"equalto":":input[name='routing_number']","messages":{"equalto":"Bank ACH Routing Numbers (ABA) must match."}}); fm['bank[routing_number_confirmation]'] = $(":input[name='bank[routing_number_confirmation]']",$form_register_new); 

The relative bit is this:

":input[name='routing_number']"

I’m expecting this code to be:

":input[name='bank[routing_number]']"

Here are the ValidateThis rules for routing_number and routing_number_confirmation.

    {   "name":             "routing_number" ,
        "clientFieldName":  "bank[routing_number]" ,
        "rules":            [
            {   "type":             "required" ,
                "failureMessage":   "Bank ACH Routing Number (ABA) is required."

            } ,
            {   "type":             "rangelength" ,
                "params":           [
                    {   "name": "minlength" ,   "value":    "9" } ,
                    {   "name": "maxlength" ,   "value":    "9"} ] ,
                "failureMessage":   "Bank ACH Routing Number (ABA) is 9 digits."

            }

        ]

    } ,

    {   "name":             "routing_number_confirmation" ,
        "clientFieldName":  "bank[routing_number_confirmation]" ,
        "rules":            [
            {   "type":             "required" ,
                "failureMessage":   "Confirm Bank ACH Routing Number (ABA) is required."

            } ,
            {   "type":             "equalTo" ,
                "params":   [
                    {   "name":     "comparePropertyName" ,
                        "value":    "routing_number" }
                ] ,
                "failureMessage":   "Bank ACH Routing Numbers (ABA) must match."

            } ,
            {   "type": "rangelength" ,
                "params":   [
                    {   "name": "minlength" ,   "value":    "9" } ,
                    {   "name": "maxlength" ,   "value":    "9"} ] ,
                "failureMessage":   "Bank ACH Routing Number (ABA) is 9 digits."

            }

        ]

    }

This is the load order for ValidateThis scripts.

// jQuery and jQuery Validate are loaded.

#getColdboxOCM().get( "ValidateThis" ).getInitializationScript(
    JSIncludes= false )#

// Other ValidateThis scripts

#getColdboxOCM().get( "ValidateThis" ).getValidationScript(
    objectType= "registration/bank-account" ,
    formName=   rc.form.name )#

The other JavaScript rules for routing_number and routing_number_confirmation work just fine. I’ve added some custom rules to get around the issue, but is there a way I can fix this using ValidateThis?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:17:48+00:00Added an answer on May 27, 2026 at 4:17 am

    I asked the question on the ValidateThis Google Group and got a prompt response.

    http://groups.google.com/group/validatethis/browse_thread/thread/2b18af00d3f5ce98

    This was a bug within ValidateThis, but was corrected and is now part of the development branch in github.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

OK so that title sucks a little but I could not think of anything
Title might be a bit confusing, so let me explain. I have a website
(The title sucks. How to improve?) Animated selection http://www.clafy.com/images/mwsnap001.jpg In the picture above, there
Title is a bit ambiguous, but what I mean is: InputStream is = connection.getInputStream();
I know, the title sucks... not sure how to explain what I'm asking, so
title seems clear enough, but we never know. here's my problem, i got a
Title of question is my thoughts of the solution to the following problem but
Title is the entire question. Can someone give me a reason why this happens?
Title says what i'm trying to do. I can successfully generate an assembly if
Title says it mostly. I want to add a simple extension method to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.