Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:and _time is one of the ones listed.
Any form field name, from the cfform tag or an HTML form, that ends in one of the following suffixes invokes server-side form validation:
quote:
Form entries incomplete or invalid.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: Newsgroup User
angplange wrote:
> Help! I have an app that will be accepting a POST request to a page from an
> external app, and I have no control over the field names it's submitting.
> Unfortunately one of them ends with _time, so CF is trying to validate the
> data? How do I get around this? I'm using CFMX 6.1 on Windows...
>
That is going to be a challenge. I personally do not know of any way to
disable ColdFusion automatic form validation based on field names.
The only thought I have is that you could use some kind of web service
code to rewrite the request headers before it is handed off to
ColdFusion. But that could be tricky.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: cf_dev2
Have you tried defining your own validation handler with cferror? If a custom handler overrides the default CF handler, you could code it to do whatever you want.
Look into CFERROR
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: Abinidi
If you have access to the server, you could technically edit the cfforms.js file in the CFIDE folder and comment out/ edit the "time" validation?
I have not done it before, but would it work?
function _CF_checktime()
Copy link to clipboard
Copied
quote:
Originally posted by: Abinidi
> If you have access to the server, you could technically edit the cfforms.js
> file in the CFIDE folder and comment out/ edit the "time" validation?
>
> I have not done it before, but would it work?
>
> function _CF_checktime()
Copy link to clipboard
Copied
Copy link to clipboard
Copied