cfinput type=t

This tag is failing to validate in Coldfusion 8.  It was running on 7, now isn't working in 8.  Any ideas?


<cfinput required="yes" message="Last Name is Required"  name="lastname" type="text"  value="#t.lastname#">

Open in new window

NYGiantsFanAsked:
Who is Participating?
 
_agx_Connect With a Mentor Commented:
NYGiantsFan:

Open your browser and try and view this file:  (Replace 'localhost' with your server name)

          http://localhost/CFIDE/scripts/cfform.js

If you get an HTTP 404 (file not found) error, the problem is you are missing the /CFIDE mapping.

> make sure that cfide mapping is created in CF administrator

     Which is exactly what I just said.


0
 
erikTsomikSystem Architect, CF programmer Commented:
what is name of the query
0
 
erikTsomikSystem Architect, CF programmer Commented:
what error do you get ?
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
_agx_Commented:
There is nothing wrong with the code.  It works fine with CF8.  

It is probably a problem with your mappings.  The validation scripts are located in /CFIDE .  If that mapping does not exist, CF will not be able to find the scripts that perform validation.  So the validation will not fire.


<cfset t.lastName = "something">
<cfform method="post">
	<cfinput required="yes" message="Last Name is Required"  name="lastname" type="text"  value="#t.lastname#">
	<cfinput type="submit" name="submitButton">
</cfform>

Open in new window

0
 
NYGiantsFanAuthor Commented:
object expected on this line

    if( _CF_hasValue(_CF_this['effectivedate'], "TEXT", false ) )

0
 
erikTsomikSystem Architect, CF programmer Commented:
make sure that cfide mapping is created in CF administrator
0
 
NYGiantsFanAuthor Commented:
The mapping is created in the coldfusion 8 administrator.  I was able to go to the admin page from the main name.  

http://fe.mainwebsite.com/CFIDE/administrator/index.cfm
0
 
_agx_Commented:
>   if( _CF_hasValue(_CF_this['effectivedate'], "TEXT", false ) )

   Do you have a field named 'effectivedate' in your form?
0
 
NYGiantsFanAuthor Commented:
Yes...

<cfinput required="yes" message="Effective Date (E-Date) is Required (mm/dd/yyyy format)"  name="effectivedate" type="text" id="effectivedate" size="7" maxlength="15" validate="date">
0
 
_agx_Commented:
What about the cfform.js file.  Does it exist?   Also, you are using an html form, yes?
0
 
NYGiantsFanAuthor Commented:
Yes, cfform.js exists in these locations:

c:\coldfusion8\wwwroot\cfide\scripts

and

c:\inetpub\wwwroot\cfide\scripts

Also, this is the form tag...

<cfform method="post" action="formp.cfm">
0
 
_agx_Commented:
No, view it from a browser.   The physical file might exist, but you have to test the mapping. (ie what the browser sees).  That is what matters.
0
 
NYGiantsFanAuthor Commented:
I remapped it in IIS and it works now.  Thanks.
0
 
_agx_Commented:
NYGiantsFan,

Why the "B" grade? The problem was exactly what I said: the CFIDE mapping was wrong.
0
 
_agx_Commented:
Good luck ..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.