tweaking cf validation

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default tweaking cf validation

    i want to edit the js validation for html cfforms. can anyone tell me where
    the file that contains the js is located?

    i need to comment out the line that puts focus on the errored field. when
    using xml forms, i was able to go to the _cfformvalidation.xls file and edit
    the js that is used by cf. i thought that cfform.js would be the file i
    needed but it doesn't have the js function i need to edit.

    thanks

    jas5on Guest

  2. Similar Questions and Discussions

    1. query tweaking
      Getting an error - Mike havent put in the extra column yet - just test running at the moment. Sql at the bottom. Language: Table...
    2. Tweaking 'Create a New Php Script' file
      File > New > Create New PHP Script generates the same basic code everytime. How can I add a new line of code to that file so that everytime I create...
    3. Tweaking cfchart
      I am trying to construct a scatter chart where points are displayed from 0.85 to 1.15, I also would like to control the distance between the points...
    4. tweaking acks and pings
      dslreports.com tweaks page recommends that I turn on "selective acks", but gives only the windows method for doing so. Also, my machine is...
    5. tweaking digital photo
      I have a digital camera which i would like to take a photo of different rooms in my house,and then with the use of a program change the floor color...
  3. #2

    Default Re: tweaking cf validation

    <web root>/cfide/scripts/

    Its called cfform.js.
    TA-Selene Guest

  4. #3

    Default Re: tweaking cf validation

    well i looked thru cfform.js and didn't locate the routine i need. cf writes
    the following js at the end of the validation function:

    //display error messages and return success
    if( _CF_error_exists )
    {
    if( _CF_error_messages.length > 0 )
    {
    // show alert() message
    _CF_onErrorAlert(_CF_error_messages);
    // set focus to first form error, if the field supports js
    focus().
    if( _CF_this[_CF_FirstErrorField].type == "text" )
    { _CF_this[_CF_FirstErrorField].focus(); }

    }

    i need to comment out the last two lines so that it doesn't move focus to the
    fields that failed validation. this function is not in cfform. do you know
    where i could find it?

    jas5on Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139