Solved

cfinput type=t

Posted on 2009-05-12
15
134 Views
Last Modified: 2013-12-24
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

0
Comment
Question by:NYGiantsFan
  • 7
  • 5
  • 3
15 Comments
 
LVL 19

Expert Comment

by:erikTsomik
ID: 24367342
what is name of the query
0
 
LVL 19

Expert Comment

by:erikTsomik
ID: 24367346
what error do you get ?
0
 
LVL 52

Expert Comment

by:_agx_
ID: 24368180
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
 

Author Comment

by:NYGiantsFan
ID: 24368184
object expected on this line

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

0
 
LVL 19

Expert Comment

by:erikTsomik
ID: 24368232
make sure that cfide mapping is created in CF administrator
0
 

Author Comment

by:NYGiantsFan
ID: 24368262
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
 
LVL 52

Accepted Solution

by:
_agx_ earned 500 total points
ID: 24368263
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
New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

 
LVL 52

Expert Comment

by:_agx_
ID: 24368277
>   if( _CF_hasValue(_CF_this['effectivedate'], "TEXT", false ) )

   Do you have a field named 'effectivedate' in your form?
0
 

Author Comment

by:NYGiantsFan
ID: 24368354
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
 
LVL 52

Expert Comment

by:_agx_
ID: 24368369
What about the cfform.js file.  Does it exist?   Also, you are using an html form, yes?
0
 

Author Comment

by:NYGiantsFan
ID: 24368452
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
 
LVL 52

Expert Comment

by:_agx_
ID: 24368483
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
 

Author Closing Comment

by:NYGiantsFan
ID: 31580652
I remapped it in IIS and it works now.  Thanks.
0
 
LVL 52

Expert Comment

by:_agx_
ID: 24368602
NYGiantsFan,

Why the "B" grade? The problem was exactly what I said: the CFIDE mapping was wrong.
0
 
LVL 52

Expert Comment

by:_agx_
ID: 24371046
Good luck ..
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Migration from IIS6 onto IIS7 6 48
Using Route 53, Record Sets & Health Checks 2 Node Exchange 2016 environment 2 97
WEB Farm 6 60
exchange 2010 turning off 3des ciphers 2 111
A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now